문제

So I've been pondering on this for about a week, is it possible to use a Batch file to shut someone else's computer off? I already know that shutdown.exe /s or shutdown.exe /s /t 00 shuts down your own computer, and that by replacing /s with /l or /r will logoff or restart your computer, but what I want to know is that is it possible to remotely shut someone else's computer off with similar commands. Obviously the code will be really complex if it is possible

도움이 되었습니까?

해결책

Yes, provided you have sufficient rights on the remote computer to do so. See the documentation for shutdown, particularly the /m switch.

shutdown /m \\computertoshutdown

For information about the required rights, see the Remarks page in the linked documentation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top