로컬 또는 원격 컴퓨터를 하나씩 종료하거나, 다시 시작할 수 있습니다.
Syntax
shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/fw] [/f] [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
Parameters
Parameter | Description |
---|---|
/i | Displays the Remote Shutdown box. The /i option must be the first parameter following the command. If /i is specified, all other options are ignored. |
/l | 제한 시간 없이 현재 사용자를 즉시 로그아웃합니다. The /l parameter works independently and can't be combined with any other parameters. Attempts to combine /l with any other parameter is ignored. |
/s | 컴퓨터를 종료합니다. |
/sg | 컴퓨터를 종료합니다. 다음 부팅 시 자동 다시 시작 로그온을 사용하도록 설정하면 디바이스가 자동으로 로그인되고 마지막 대화형 사용자를 기반으로 잠기게 됩니다. 로그인 후 등록된 애플리케이션을 다시 시작합니다. |
/r | 종료 된 후 컴퓨터를 다시 시작합니다. |
/g | 컴퓨터를 완전히 종료했다가 다시 시작합니다. 다시 시작 시 자동 다시 시작 로그온을 사용하도록 설정하면 디바이스가 자동으로 로그인되고 마지막 대화형 사용자를 기반으로 잠기게 됩니다. 로그인 후 등록된 애플리케이션을 다시 시작합니다. |
/a | 시스템 종료를 중단합니다. 제한 시간 동안에만 사용 가능합니다. Combine with /fw to clear any pending boots to firmware. |
/p | 로컬 컴퓨터만는 원격 컴퓨터가 아닌 해제-제한 시간 또는 경고 없이 합니다. You can use /p only with /d or /f. If your computer doesn't support power-off functionality, it shuts down when you use /p, but the power to the computer remains on. |
/h | 최대 절전 모드를 사용 하는 경우 최대 절전 모드를 로컬 컴퓨터를 설정 합니다. The /f switch can be used with the /h switch. |
/hybrid | 디바이스를 종료한 다음 빠른 시작을 준비합니다. This option must be used with the /s option. |
/soft | 실행 중인 프로세스와 애플리케이션이 강제 종료되는 대신 정상적으로 닫을 수 있습니다. |
/fw | 이 옵션을 종료 옵션과 결합하면 다음번 다시 시작 시 펌웨어 사용자 인터페이스로 이동합니다. |
/e | 컴퓨터가 예기치 않게 종료된 이유를 종료 이벤트 추적기에서 문서화할 수 있습니다. |
/o | 고급 부팅 옵션 메뉴로 이동하여 디바이스를 다시 시작합니다. This option must be used with the /r option. |
/f | 강제로 사용자에 게 경고 하지 않고 닫으려면 애플리케이션을 실행 합니다. Caution: Using the /f option might result in loss of unsaved data. |
/분 \\<computername> |
대상 컴퓨터를 지정합니다. |
/티 <xxx> |
Sets the time-out period before shutdown to xxx seconds. 유효한 범위는 0~315,360,000(10년)이며 기본값은 30입니다. If the timeout period is greater than 0, the /f parameter is implied. |
/디 [p \| u:]<xx>:<yy> |
시스템 다시 시작 또는 종료의 원인을 나열 합니다. 지원되는 매개 변수 값은 다음과 같습니다.
|
/씨 <comment> |
시스템 종료 또는 다시 시작에 대한 사용자 지정 이유를 생성할 수 있으며, 이 이유는 큰따옴표로 묶어야 합니다. 최대 512자를 사용할 수 있습니다. Can also be used with the /d parameter. |
/? | 로컬 컴퓨터에 정의 된 주 버전과 부 이유의 목록을 포함 하 여 명령 프롬프트에서 도움말을 표시 합니다. |
Remarks
사용자를 할당 해야는 시스템 종료 을 종료 하거나 로컬 원격 사용자 권한을 사용 하 여 컴퓨터 관리는 종료 명령입니다.
Users must be members of the Administrators group to annotate an unexpected shutdown of a local or remotely administered computer. If the target computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. 자세한 내용은 다음을 참조하세요.
If you want to shut down more than one computer at a time, you can call shutdown for each computer by using a script, or you can use
shutdown /i
to display the Remote Shutdown box.주 버전과 부 이유 코드를 지정 하는 이유를 사용 하려는 각 컴퓨터에 이러한 이유 코드를 먼저 정의 해야 합니다. 이유 코드가 대상 컴퓨터에 정의되지 않은 경우 종료 이벤트 추적기는 올바른 이유 텍스트를 기록할 수 없습니다.
종료가 를 사용하여
/d p|u:xx:yy
계획되었음을 나타내고, 여기서xx
yy
주요 및 사소한 이유 코드를 나타냅니다. 매개 변수를 사용하지/d
않으면 지정된 이유 없이 종료가 기록될 수 있습니다. 계획되지 않은 종료에 대한 매개 변수를/d
사용하면 종료를 올바르게 기록할 수 있습니다.
종료 또는 다시 시작 이유는 다음과 같은 범례를 사용합니다.
- E: Expected - An expected shutdown or restart that is planned and communicated in advance.
- U: Unexpected - An unexpected shutdown or restart occurs where the system stops working due to an error, such as a system crash, power failure or other.
- P: Planned - A planned shutdown or restart scheduled in advance, such as system maintenance, software installation or other.
- C: Customer Defined - Specify a custom reason for the system shutdown or restart.
Reason type | Major | Minor | Description |
---|---|---|---|
U | 0 | 0 | Other (Unplanned) |
E | 0 | 0 | Other (Unplanned) |
E 또는 P | 0 | 0 | Other (Planned) |
U | 0 | 5 | 기타 오류: 시스템이 응답하지 않음 |
E | 1 | 1 | 하드웨어: 유지 관리(계획되지 않음) |
E 또는 P | 1 | 1 | 하드웨어: 유지 관리(계획됨) |
E | 1 | 2 | 하드웨어: 설치(계획되지 않음) |
E 또는 P | 1 | 2 | 하드웨어: 설치(계획됨) |
E | 2 | 2 | 운영 체제: 복구(계획되지 않음) |
E 또는 P | 2 | 2 | 운영 체제: 복구(계획됨) |
P | 2 | 3 | 운영 체제: 업그레이드(계획됨) |
E | 2 | 4 | 운영 체제: 재구성(계획되지 않음) |
E 또는 P | 2 | 4 | 운영 체제: 재구성(계획됨) |
P | 2 | 16 | 운영 체제: 서비스 팩(계획됨) |
2 | 17 | 운영 체제: 핫픽스(계획되지 않음) | |
P | 2 | 17 | 운영 체제: 핫픽스(계획됨) |
2 | 18 | 운영 체제: 보안 수정(계획되지 않음) | |
P | 2 | 18 | 운영 체제: 보안 수정(계획됨) |
E | 4 | 1 | 애플리케이션: 유지 관리(계획되지 않음) |
E 또는 P | 4 | 1 | 애플리케이션: 유지 관리(계획됨) |
E 또는 P | 4 | 2 | 애플리케이션: 설치(계획됨) |
E | 4 | 5 | Application: Unresponsive |
E | 4 | 6 | Application: Unstable |
U | 5 | 15 | 시스템 오류: 중지 오류 |
U | 5 | 19 | 보안 문제(계획되지 않음) |
E | 5 | 19 | 보안 문제(계획되지 않음) |
E 또는 P | 5 | 19 | 보안 문제(계획됨) |
E | 5 | 20 | 네트워크 연결 끊김(계획되지 않음) |
U | 6 | 11 | 전원 오류: 코드 분리 |
U | 6 | 12 | 전원 오류: 환경 |
P | 7 | 0 | 레거시 API 종료 |
Examples
앱을 강제로 닫고 1분 지연 후 로컬 컴퓨터를 다시 시작하려면 애플리케이션: 유지 관리(계획됨) 이유 및 "Reconfiguring myapp.exe" 주석과 함께 다음을 입력합니다.
shutdown /r /t 60 /c "Reconfiguring myapp.exe" /f /d p:4:1
10분 안에 디바이스의 계획된 종료를 수행하고 종료 이벤트 추적기에서 "예약된 유지 관리" 주석으로 이유를 캡처하려면 다음을 입력합니다.
shutdown.exe /s /t 600 /d p:0:0 /e /c "Scheduled maintenance"
To restart the remote computer myremoteserver with the same parameters as the previous example, type:
shutdown /r /m \\myremoteserver /t 60 /c "Reconfiguring myapp.exe" /f /d p:4:1
To restart the remote computer myremoteserver in 5 minutes due to a security update and include a custom reason in the shutdown event tracker, type:
shutdown /r /t 300 /e /c "Security Update" /m \\myremoteserver