Link to home
Start Free TrialLog in
Avatar of AI-SYD
AI-SYDFlag for Australia

asked on

Set Time from the server for a LIST of workstations on a domain

Hi All,

Can someone assist me with a script that i can run as administrator from a server that will use a text file with computer names in it to set the time please using the net time /domain:acme /set command?

If there is an easier or better way to mass change time for workstations let me know.

This is urgent for me, if you can help please do.

Thanks

Aalborg
ASKER CERTIFIED SOLUTION
Avatar of cubeeq
cubeeq
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AI-SYD

ASKER

HI Mate,

Im getting an error when running this from a DC as Domain Administrator, any idea? I am researching also while i wait.

Thanks

Aalborg
E:\IT\Ultilities\PsTools>psexec \\computer net time /domain:ACME /set
 
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
 
 
System error 5 has occurred.
 
Access is denied.
 
net exited on computer with error code 2.
 
E:\IT\Ultilities\PsTools>

Open in new window

Avatar of AI-SYD

ASKER

Got it.

psexec -s  \\* net time /domain:ACME /set /Y
Avatar of AI-SYD

ASKER

psexec -s \\* net time /domain:ACME /set /Y