Remotely Setting the Time on a Windows Machine

Use psexec.exe from an admin account on a remote system and send this command below. This can be from a Domain Admin account or if the machine you are logged onto has the same exact Admin account…

psexec \\MachineName w32tm /resync
PsExec v1.98 - Execute processes remotelyCopyright (C) 2001-2010 
Mark RussinovichSysinternals - www.sysinternals.com
Sending resync command to local computer...
The command completed successfully.w32tm exited on MachineName with error code 0.

Then check time with…

net time \\MachineName

Note: You can specify a username to execute this command as, but the password will go over the wire in plain text. (NOT Recommended)

Advertisements

About Craig Szymanski

Systems Administrator Photography Enthusiast
This entry was posted in Network Administration, Windows and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s