Setting time error

D

Danbabe

I have written a batch file login script to get the time from the primary DC
upon user login:

net time \\exch1 /set

However, everytime this script runs, it asks the user in the command box to
select Y for yes to set the time from this server. Is there any automated
switch I am missing that will automatically change the time to the selected
server without asking the user to select Y?

Many thanks

Danny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top