|
In my office we have all recently had our admin rights stripped from our regular accounts and given admin accounts to perform our normal admin tasks. This itself isn't a big deal however it does make things like remote connection a pain. When we need to remotely connect to a users pc (using Radmin) we have to remotely start the service via sc \[pc number] or PSExec, then connect to the pc and finally remotely stop the service. We need to do it this way for licensing reasons. I wrote a batch file that did this all automatically which worked fine until our admin rights were stripped. Is there any way in a batch file to run it as an Admin account to start the service then switch to my regular account to remotely connect and then switch back to the admin account to stop the service? I can do it via run as but that means I would always have to enter my password. |
