• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do you run a script as administrator (have local admin access)

Red Squirrel

No Lifer
I want to run a script on startup on a windows 7 machine but it requires admin rights. The account has local admin access but when you run a script it does not seem to run as admin. You can launch the script manually "as administrator" by right clicking it but I need to automate it.

How do I go about doing that?
 
Ok figured something out, decided to just run it as a scheduled task with a 30 minute delay and it seems to work fine and run as admin.
 
I want to run a script on startup on a windows 7 machine but it requires admin rights. The account has local admin access but when you run a script it does not seem to run as admin. You can launch the script manually "as administrator" by right clicking it but I need to automate it.

How do I go about doing that?
gpedit.msc
computer configuration
windows settings
scripts
startup
 
Please tell me you had to login as an admin to do that. Effing Winders default allow dangerous shit.

No just as my regular domain user, but that user has local admin access. I presume it would not allow me to run task as admin otherwise... then again, it's windows lol.
 
Yeah thanks, I feel better now. My brother and I figured out how to push some tasks like that out using one of the pstools, but that was like a decade ago running as domain admin.
 
Back
Top