Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run a script as administrator from a regular user account

Status
Not open for further replies.
Dec 8, 2003
56
US
Anyone know how to run a vbs script that writes to the registry? I don't want to have to log in to each workstation as administrator. I just want to use the local user account already logged in with elevated rights.
 
No, but you can 'Run as' on the regedit exe file and then import a .reg file.

must be careful where in the registry you are trying to write to though - current user stuff WON'T work as you will be updating the current user of the ELEVATED user NOT the logged in user.

Jamie Gillespie
Senior IT Technician
South Cheshire College
j-gillespie@s-cheshire.ac.uk
 
You may consider runas and using SendKeys for the password.
Or take a look at for psexec.exe

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top