set-date 01/01/2009
Start-Process "c:\windows\system32\notepad.exe" Start-sleep 15 set-date (invoke-command -ComputerName SOMECURRENTTIMESERVER -ScriptBlock {get-date}) |
You can update the process path in the second line, then save this as a .ps1 file and use it as a shortcut to launch time-bombed applications.
It does require the appropriate permissions on the sever we get the time from in the fourth line. It'll also need Powershell Remoting enabled.
Thanks Occasianal Utility Guy, this is exactly what I needed
ReplyDelete