DBMS/PC관련

[펌] 윈도우 7 절전모드 명령

python24 2010. 10. 27. 15:20


윈도우 7 절전모드 명령

(출처 : http://social.answers.microsoft.com/Forums/ko-KR/w7performanceko/thread/9420976a-bf75-4b0b-89f3-581a06d5d5cc)



최대 절전 모드
%windir%\System32\rundll32.exe powrprof.dll SetSuspendState Hibernate

대기모드
%windir%\System32\rundll32.exe powrprof.dll SetSuspendState

로그오프
%windir%\System32\Shutdown.exe –l –t 0
-l (영문자 L) 스위치 : 로그오프 기능 
–t (영문자 T) 스위치 : 명령이 실행시까지 대기시간 (0 으로 설정시 바로 수행)

재시작
%windir%\System32\Shutdown.exe –r –t 0
-r (영문자 R) 스위치 : 윈도 재시작 기능 
–t (영문자 T) 스위치 : 명령이 실행시까지 대기시간 (0 으로 설정시 바로 수행)

전원 끄기
%windir%\System32\Shutdown.exe –s –t 5
-s (영문자 S) 스위치 : PC 전원 종료 기능 
–t (영문자 T) 스위치 : 명령이 실행시까지 대기시간 (예제에서는 5초 후 PC 종료)

사용자 전환
%windir%\System32\rundll32.exe user32.dll LockWorkStation