Executing commands on a machine running Windows remotely

I've already advertised Sysinternals a couple of times. Now I do it again. Smile There's a utility called PsExec that you can use to execute commands on a Windows (only the versions in the NT family are supported) remotely, aka. without logging in to the UI (neither locally nor via Terminal Services).

You'll need an account with administrator privileges though. Eg. to set the date on a remote machine, just type this:
psexec \\remotemachine -u username cmd.exe /c "echo mm-dd-yy | date & date /t"

Replace remotemachine with the name of the remote Windows machine, username with the name of the account with admin privileges on the remote machine and mm-dd-yy with the actual date you want to set.
Note that the above example will only work if the date command expects the date in mm-dd-yy format. This might depend on the regional settings of the remote Windows machine.