Windows – Is it possible to shutdown a remote computer running Windows 7 via Telnet

command linepermissionsshutdowntelnetwindows 7

I've successfully connected to my Windows 7 desktop over wifi via Telnet from an XP Home netbook. To login, I use the following command:

telnet -l "win7desktop\win7user" win7desktop

win7user in this case is an Administrator on win7desktop and is also a member of the Telnet Clients Group.

The problem I have is that when I attempt to shut down win7desktop by issuing the following command:

shutdown /s

…at the Telnet prompt, I get an Access Denied error:

Access is denied.(5)

Is it possible to shutdown a remote computer running Windows 7 via Telnet? If so, what do I need to do to get around the Access is denied error?

Best Answer

Is it necessary to use telnet?

If not, you can use PsShutdown to shutdown a remote computer. Or, you can use PsExec and call the shutdown command.

psshutdown -u <username> -t 0 -k
psexec -d -u <username> shutdown -t 0 -s
Related Question