Is there a 2000 equivalent for this XP command?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

@echo off

w32tm /config /syncfromflags:DOMHIER /update

net stop w32time
net start w32time

w32tm /resync /rediscover

exit

-------------------------
I tried it on a W2K Pro box and quickly realized it wouldn't work. The only
other option I saw for 2K involved deleting keys from the registry, which I
can do if necessary, but would prefer a batch solution if possible. I need
to get my 2k boxes off the separate time server and back to getting their
time from the DC's. Thanks.
 
- said:
@echo off

w32tm /config /syncfromflags:DOMHIER /update

net stop w32time
net start w32time

w32tm /resync /rediscover

exit

-------------------------
I tried it on a W2K Pro box and quickly realized it wouldn't work. The
only other option I saw for 2K involved deleting keys from the
registry, which I can do if necessary, but would prefer a batch
solution if possible. I need to get my 2k boxes off the separate
time server and back to getting their time from the DC's. Thanks.

Not sure of the specifics, but how did the clients end up with anything
else? By default, a Win2k/XP box gets its time from the PDC emulator.

What do you see when you type :

net time /querysntp

.... on a client?

Some references -
http://support.microsoft.com/kb/224799
 
Our machine images were reconfigured to talk to an NTP server (fortunately
at least, it's the same NTP server the forest root uses anyway) but it's not
a great configuration and the process was thankfully ceased. But, I need to
do cleanup on the older boxes and get them back to default settings. My
script works beautifully on XP machines, but I went to run it on a 2K box
and quickly realized it didn't work on 2K boxes, which, unfortunately, are
the bulk of the deskstops that need to be remediated. I did have another
script but I was hoping to avoid having to merge registry keys, because the
XP script didn't require that, but I'm not sure if it will be possible.


"Lanwench [MVP - Exchange]"
 
So can I reset my W2K desktops back to using the PDC using a script?

Our machine images were reconfigured to talk to an NTP server (fortunately
at least, it's the same NTP server the forest root uses anyway) but it's
not a great configuration and the process was thankfully ceased. But, I
need to do cleanup on the older boxes and get them back to default
settings. My script works beautifully on XP machines, but I went to run
it on a 2K box and quickly realized it didn't work on 2K boxes, which,
unfortunately, are the bulk of the deskstops that need to be remediated.
I did have another script but I was hoping to avoid having to merge
registry keys, because the XP script didn't require that, but I'm not sure
if it will be possible.


"Lanwench [MVP - Exchange]"
Not sure of the specifics, but how did the clients end up with anything
else? By default, a Win2k/XP box gets its time from the PDC emulator.

What do you see when you type :

net time /querysntp

... on a client?

Some references -
http://support.microsoft.com/kb/224799
 
Like Lanwench said, what do you get when you use the 'net time' command?

(See in her reply)

Cheers,

Cliff

- said:
Our machine images were reconfigured to talk to an NTP server (fortunately
at least, it's the same NTP server the forest root uses anyway) but it's not
a great configuration and the process was thankfully ceased. But, I need to
do cleanup on the older boxes and get them back to default settings. My
script works beautifully on XP machines, but I went to run it on a 2K box
and quickly realized it didn't work on 2K boxes, which, unfortunately, are
the bulk of the deskstops that need to be remediated. I did have another
script but I was hoping to avoid having to merge registry keys, because the
XP script didn't require that, but I'm not sure if it will be possible.


"Lanwench [MVP - Exchange]"
Not sure of the specifics, but how did the clients end up with anything
else? By default, a Win2k/XP box gets its time from the PDC emulator.

What do you see when you type :

net time /querysntp

... on a client?

Some references -
http://support.microsoft.com/kb/224799
 
I get ntp.xxxx.org where the xxxx is our forest root name.


Enkidu said:
Like Lanwench said, what do you get when you use the 'net time' command?

(See in her reply)

Cheers,

Cliff

- said:
Our machine images were reconfigured to talk to an NTP server
(fortunately at least, it's the same NTP server the forest root uses
anyway) but it's not a great configuration and the process was thankfully
ceased. But, I need to do cleanup on the older boxes and get them back
to default settings. My script works beautifully on XP machines, but I
went to run it on a 2K box and quickly realized it didn't work on 2K
boxes, which, unfortunately, are the bulk of the deskstops that need to
be remediated. I did have another script but I was hoping to avoid
having to merge registry keys, because the XP script didn't require that,
but I'm not sure if it will be possible.


"Lanwench [MVP - Exchange]"
- wrote:
@echo off

w32tm /config /syncfromflags:DOMHIER /update

net stop w32time
net start w32time

w32tm /resync /rediscover

exit

-------------------------
I tried it on a W2K Pro box and quickly realized it wouldn't work. The
only other option I saw for 2K involved deleting keys from the
registry, which I can do if necessary, but would prefer a batch
solution if possible. I need to get my 2k boxes off the separate
time server and back to getting their time from the DC's. Thanks.
Not sure of the specifics, but how did the clients end up with anything
else? By default, a Win2k/XP box gets its time from the PDC emulator.

What do you see when you type :

net time /querysntp

... on a client?

Some references -
http://support.microsoft.com/kb/224799
 
Looks like you are already using the forest root as time source. But I
could be wrong.

Cheers,

Cliff

- said:
I get ntp.xxxx.org where the xxxx is our forest root name.


Enkidu said:
Like Lanwench said, what do you get when you use the 'net time' command?

(See in her reply)

- said:
Our machine images were reconfigured to talk to an NTP server
(fortunately at least, it's the same NTP server the forest root uses
anyway) but it's not a great configuration and the process was thankfully
ceased. But, I need to do cleanup on the older boxes and get them back
to default settings. My script works beautifully on XP machines, but I
went to run it on a 2K box and quickly realized it didn't work on 2K
boxes, which, unfortunately, are the bulk of the deskstops that need to
be remediated. I did have another script but I was hoping to avoid
having to merge registry keys, because the XP script didn't require that,
but I'm not sure if it will be possible.


"Lanwench [MVP - Exchange]"
message - wrote:
@echo off

w32tm /config /syncfromflags:DOMHIER /update

net stop w32time
net start w32time

w32tm /resync /rediscover

exit

-------------------------
I tried it on a W2K Pro box and quickly realized it wouldn't work. The
only other option I saw for 2K involved deleting keys from the
registry, which I can do if necessary, but would prefer a batch
solution if possible. I need to get my 2k boxes off the separate
time server and back to getting their time from the DC's. Thanks.
Not sure of the specifics, but how did the clients end up with anything
else? By default, a Win2k/XP box gets its time from the PDC emulator.

What do you see when you type :

net time /querysntp

... on a client?

Some references -
http://support.microsoft.com/kb/224799
 
Back
Top