Question

Locked

Running Segments of a batch file under an admin

By adminmichael ·
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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Automatically? Not really.

by seanferd In reply to Running Segments of a bat ...

Runas probably won't provide the solution you are looking for.

What about delegating the right to perform that operation to the group the limited users belong to? Can you do that with the OS you are using? Or, can you run the script from from the server side with domain admin privileges?

Collapse -

why not use the Time server service or via gpo?

by markp24 In reply to Running Segments of a bat ...

Hi , you try running the script as part of the GPO? or depending on the OS the time server service?

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums