Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Does anyone know of a way to insert automated replys into a batch file for instance:

 

net time \\ /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

Posted

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.

Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...