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 remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - 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...

Posted By crmanski read more

Converting Log File Date/Time


The time in the logfiles in for squid are impossible to figure out. They are in epoch time. To convert the times in the log to an understandable format you can use a script. I found this on the squid users mailing list...


Save the two lines in that message to a file somewhere and make it executable...

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'

chmod 755 squidtime.sh

Posted By crmanski read more
Subscribe to RSS - time