keith li
asked on
Create a vb script for net time on window server problem
Hi All
How do i create a vb script for below,
net time \\server_name /set /y
is below example correct ? i created and double it, it has error pop up, any idea ?
WSHShell.RUN "NET TIME \\10.0.0.7 /set/y",0,True
Keith
How do i create a vb script for below,
net time \\server_name /set /y
is below example correct ? i created and double it, it has error pop up, any idea ?
WSHShell.RUN "NET TIME \\10.0.0.7 /set/y",0,True
Keith
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
in window GPO is there one for sntp server ? or i need to manually create a vb script for that ? if need to create a vb script, is below details in vb script would be enough ? if i want to create a vb script with sync external time, how do i write in vb script ?
CreateObject("WScript.Shel l").Run ("net time \\servername /set /y")
CreateObject("WScript.Shel
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
our DC has already done for setsntp time server with exteral time server, but i do not want to remote all the client computer to run this command, and suppose if the clients pc has joined the domain, time will be sync with DC, but i see some of the pc located in remote site who joined the DC, the time is around 20 mins slower,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Normally a client pc which has joined domain, the time will be sync with server, but in my case, for those pc who is joined the domain in remote site, some pc time just not the same 10 mins behind, for those pc they dont have admin right (power user right) , will this not affect the time sync i think, what i need to do is manually remote those pc and run net time /setsntp:time_server , thats why i would like to create a vb scripts and put it on GPO, any better ideas ?
Keith