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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run vbscript with elevated rights?

Status
Not open for further replies.

pandu101

MIS
Sep 20, 2010
17
0
0
US
I need a script to run with admin rights but I dont want to save the user/pass within the script file. Also, what would be the command that allows the script to assign "Authenticated Users" modify rights to a folder? TIA
 
login with the an admin account then run the script?
run the script as a scheduled task i think it then runs as system?
use runas to call the script?
use psexec.exe when logged onto remote machine as user will elevated permissions?
start the script from some installation service? e.g. altiris, sccm, sms, these clients will prob have elevated rights?
pass the script as command line parameters the creditials you want it to use in its calls?

use cacls or xcacls to assign folder permissions?

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top