Does anyone know of a way to insert automated replys into a batch file for instance:
net time \\<servername> /set
this syncs the time on the local machine to the servers but asks you for a Y/N answer is there a way of giving it that answer within a batch file?
Wes
You don't need to do this, Windows clients will automagically sycronise their time settings with domain controllers.
If you really want to be sure (or you need to use an external time source) you can set the NTP client options in group policies.

But if you must you use:
net time \\computername /set /y
Ben
Remember to also allow 'Domain Users' the 'Alter Time and Date Settings' user role. Bear in mind though this also allows them to manually screw up the time. Resulting in kerberos (logins + group policies) and windows update breaking.
Cool thanks! The teachers have already got this and its for one of their laptops!
Wes
There are currently 1 users browsing this thread. (0 members and 1 guests)