How to check remote server time via psexec

Stan picture Stan · Mar 14, 2010 · Viewed 35.8k times · Source

I tried command like below. But can't see server time.

psexec \\SERVER_NAME -i -u USERNAME -p PWD "C:\WINDOWS\system32\cmd.exe /c time /t"

Or is there any alternative? Thanks.

Answer

Anders Abel picture Anders Abel · Mar 14, 2010
net time \\SERVER_NAME

Ps. This question really belongs at ServerFault.