[WINDOWS/XML] 예약작업으로 컴퓨터 끄기, 자동 셧다운 스크립트, Windows System Task Scheduler Auto Shutdown
Start > Control Panel > Administrative Tools > Task Scheduler
Menu > Action > Import Task
예약작업에서 임포트 해주는 스크립트 입니다.
이 스크립트는 새벽 1시 50분에 컴퓨터를 5분 후에 종료시킵니다.
만약, 컴퓨터가 꺼지는 걸 원치 않으면 5분내로
Start > Run (콘솔창, 명령 프롬프트)
#> shutdown -a
라고 명령하시면 됩니다.
파일에 Ahutor값 Computer\AHKi를 '본인의컴퓨터명\사용자명' 으로 변경하세요.
<?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2013-10-31T00:14:56.3128127</Date> <Author>Computer\AHKi</Author> </RegistrationInfo> <Triggers> <CalendarTrigger> <StartBoundary>2013-10-31T01:50:00</StartBoundary> <Enabled>true</Enabled> <ScheduleByDay> <DaysInterval>1</DaysInterval> </ScheduleByDay> </CalendarTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>Computer\AHKi</UserId> <LogonType>InteractiveToken</LogonType> <RunLevel>LeastPrivilege</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>false</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <Duration>PT10M</Duration> <WaitTimeout>PT1H</WaitTimeout> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <WakeToRun>false</WakeToRun> <ExecutionTimeLimit>P3D</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="Author"> <Exec> <Command>shutdown</Command> <Arguments>-f -s -t 600</Arguments> </Exec> </Actions> </Task>