ProLiant Deployment and Provisioning
1828861 Members
2547 Online
109985 Solutions
New Discussion

Set RBSU time & date via RDP script.

 
MC1903
Regular Advisor

Set RBSU time & date via RDP script.

Does anyone know if it is possible to set the system date & time via RDP.

I am talking about the date & time, as set via RBSU â NOT the time within Windows!

The reason I ask, is that I am deploying Windows 2003 server onto machines where the factory set date is 3 or 4 months out from â real timeâ .

As soon as Windows 2003 loads & synchronises time with our NTP time source, Windows thinks it has been running unactivated for more than 60 days and I am forced to activate windows or shutdown.

I would like to synchronise the servers time before I start the Windows 2003 scripted installation.

Any ideas?
3 REPLIES 3
Richard Mouser
Valued Contributor

Re: Set RBSU time & date via RDP script.

Martin,

On your PXE boot images or diskettes, edit the autoexec.bat file. Every time you see a call to bootworks.exe, add the following parameter:

-timesync

Thanks,

Richard
Gordon Leonard
Honored Contributor

Re: Set RBSU time & date via RDP script.

Here is another tool. It's not up to NTP but it will set your system *date* and *time*.

See attachment.
MC1903
Regular Advisor

Re: Set RBSU time & date via RDP script.

Guys, many thanks for your help with this one. Your suggestions pointed me in the right direction.

I tried the -TimeSync command, but it did not adjust the BIOS time.

I checked the argument usage for bootwork.exe and whilst the command is valid, it is used to NOT synchronise time with the server! Weird !!!

In the end, I changed the autoexec.bat to include the command â NET TIME \\{RDP SERVERNAME} /SET /YESâ (without the quotes) after the F: drive had been mapped â this works a treat.