WMI 명령을 사용하여 Windows XP PC를 종료하려면 종료를 완료하기 전에 마우스/키보드 입력이 필요합니다.

WMI 명령을 사용하여 Windows XP PC를 종료하려면 종료를 완료하기 전에 마우스/키보드 입력이 필요합니다.

우리는 WMI 서비스를 사용하여 사무실에 있는 PC를 원격으로 종료합니다.

이는 Windows 7 시스템에서는 완벽하게 작동하지만 Windows XP PC가 원격 종료 명령을 받은 후 무기한으로 "종료 중" 상태에 갇히는 것으로 나타났습니다.

흥미로운 점은 문제가 되는 PC의 키보드에서 키를 누르거나 마우스를 살짝 누르면 PC가 계속 종료되고 약 10초 이내에 전원이 꺼진다는 것입니다.

이 동작의 원인은 무엇입니까?

답변1

분명히 Windows XP, Vista, 7 및 8에는 이러한 유형의 항목에 대한 shutdown.exe가 함께 제공됩니다(인수/매개 변수는 XP 이후에 변경되었지만). 내 Windows 8.1 시스템에서:

C:\Windows\System32>shutdown /?
Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/f]

[/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

No args    Display help. This is the same as typing /?.
/?         Display help. This is the same as not typing any options.
/i         Display the graphical user interface (GUI).
           This must be the first option.
/l         Log off. This cannot be used with /m or /d options.
/s         Shutdown the computer.
/r         Full shutdown and restart the computer.
/g         Full shutdown and restart the computer. After the system is
           rebooted, restart any registered applications.
/a         Abort a system shutdown.
           This can only be used during the time-out period.
/p         Turn off the local computer with no time-out or warning.
           Can be used with /d and /f options.
/h         Hibernate the local computer.
           Can be used with the /f option.
/hybrid    Performs a shutdown of the computer and prepares it for fast startup.
           Must be used with /s option.
/e         Document the reason for an unexpected shutdown of a computer.
/o         Go to the advanced boot options menu and restart the computer.
           Must be used with /r option.
/m \\computer Specify the target computer.
/t xxx     Set the time-out period before shutdown to xxx seconds.
           The valid range is 0-315360000 (10 years), with a default of 30.
           If the timeout period is greater than 0, the /f parameter is
           implied.
/c "comment" Comment on the reason for the restart or shutdown.
           Maximum of 512 characters allowed.
/f         Force running applications to close without forewarning users.
           The /f parameter is implied when a value greater than 0 is
           specified for the /t parameter.
/d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
           p indicates that the restart or shutdown is planned.
           u indicates that the reason is user defined.
           If neither p nor u is specified the restart or shutdown is
           unplanned.
           xx is the major reason number (positive integer less than 256).
           yy is the minor reason number (positive integer less than 65536).

보다http://www.computerhope.com/issues/ch000321.htm이러한 인수/매개변수 중 일부를 사용하는 방법에 대한 간단한 튜토리얼입니다.

편집: 동일한 동작이 표시되지 않을 수도 있기 때문에 언급하는 것뿐입니다. 중단의 원인은 해당 XP 시스템에서 실행 중인 프로그램의 수에 관계없이 발생할 수 있습니다. Windows의 일부 버전에서 특정 프로그램이 종료되기 전에 닫힐 때까지 기다려야 한다고 불평하는 것을 본 기억이 있지만 일부 키보드/마우스 활동 후에 중단이 사라지는 경우는 들어본 적이 없습니다.

관련 정보