Running Segments of a batch file under an admin - TechRepublic
Question
May 19, 2011 at 07:53 AM
adminmichael

Running Segments of a batch file under an admin

by adminmichael . Updated 15 years, 1 month ago

What I’m looking for is how I can set parts of a batch file to run as say my account the admin….

In my script I have “net time \\server /set /yes” and that will sync the time with the network server but when logon to a restricted user they can run that part it gives them an error can I set that part to run as an admin account for certain parts and if so how can I do that?

This discussion is locked

All Comments