How to use Run as command in a script
Posted on 2012-03-14
My current environment is windows 7 workstations and windows server 2003 DC and servers.
All domain users are just users with no Administrators privilege.
I need to creat a batch file that add reg key in registries, this batch should run in machine start uo through group policy.
The problem is that i need this batch with Admin rights so it can access the registry editor.
How can i use the local administrator account to run this batch ???
I am fliexible to use any language of scripting just advice with the commands