I am trying to start a command when I log on through remote desktop connection. The program is:

C:\Windows\System32\shutdown.exe -r -t 00 -c "Unresponsive Program"

I set the program option under the Programs tab in remote desktop connection to that path. It looks like this:enter image description here

However, when I connect to the remote machine I get this error: "The system cannot find the file specified"

enter image description here

I have made sure my shutdown.exe file exists, and also tried running C:\Windows\System32\cmd.exe, and I got the same error message. I am running Windows Server 2012 on the host and Windows 8 on the client. What is causing this problem?

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.