Windows 10 When I press the power button
Start > Windows Settings > System > Power & sleep > Additional power settings
Control Panel > All Control Panel Items > Power Options > System Settings > Define power buttons and turn on password protection > Power button settings
- When I press the power button
윈도우10 전원 단추를 누를 때
시작 > Windows 설정 > 시스템 > 전원 및 절전 > 추가 전원 설정
제어판 > 하드웨어 및 소리 > 전원 옵션 > 시스템 설정 > 전원 단추 정의 및 암호 보호 설정 > 전원 단추 설정
- 전원 단추를 누를 때
CMD (Command Prompt) 명령 스크립트
이 명령어들은 powercfg.exe 도구를 사용하여 Windows 전원 관리 설정의 특정 옵션을 수정합니다. 각 명령어는 전원 관리 프로필(전원 계획)에 대한 세부 설정을 조정하는 것으로, 시스템이 AC 전원(전원 어댑터 연결) 또는 DC 전원(배터리 상태)에서 특정 동작을 수행하는 방식을 제어합니다.
현재 활성화된 전원 계획에서 AC 전원과 DC 전원 상태에 따라 하드 디스크 절전 모드, 디스플레이 절전 모드, 그리고 절전 모드(대기 모드)를 각각 비활성화하도록 설정합니다. 000 값은 해당 기능을 비활성화하여, 사용자가 수동으로 조작하기 전까지는 시스템이 자동으로 절전 모드나 디스플레이 절전 모드로 들어가지 않도록 합니다.
Power - AC
powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 000
powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 000
Power - DC
powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 000
powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 000
- powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
서브 그룹 GUID (4f971e89-eebd-4455-a8de-9e59040e7347): 이 GUID는 전원와 관련된 설정을 나타냅니다.
설정 GUID (5ca83367-6e45-459f-a27b-476b1d01c936): 이 GUID는 절전 모드에 대한 설정을 나타냅니다.
값 (000): AC 전원 상태에서의 절전 모드를 비활성화합니다. - powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 000
설정 GUID (7648efa3-dd9c-4e3e-b566-50f929386280): 이 GUID는 디스플레이 절전 모드에 대한 설정을 나타냅니다.
값 (000): AC 전원 상태에서의 디스플레이 절전 모드를 비활성화합니다. - powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 000
설정 GUID (96996bc0-ad50-47ec-923b-6f41874dd9eb): 이 GUID는 절전 모드(Sleep)에 대한 설정을 나타냅니다.
값 (000): AC 전원 상태에서의 절전 모드를 비활성화합니다. - powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
서브 그룹 GUID (4f971e89-eebd-4455-a8de-9e59040e7347): 이 GUID는 배터리 관련된 설정을 나타냅니다.
설정 GUID (5ca83367-6e45-459f-a27b-476b1d01c936): 이 GUID는 절전 모드에 대한 설정을 나타냅니다.
값 (000): DC 전원 상태에서의 배터리 절전 모드 설정을 비활성화합니다. - powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 000
설정 GUID (7648efa3-dd9c-4e3e-b566-50f929386280): 이 GUID는 디스플레이 절전 모드에 대한 설정을 나타냅니다.
값 (000): DC 전원 상태에서의 디스플레이 절전 모드를 비활성화합니다. - powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 000
설정 GUID (96996bc0-ad50-47ec-923b-6f41874dd9eb): 이 GUID는 절전 모드(Sleep)에 대한 설정을 나타냅니다.
값 (000): DC 전원 상태에서의 절전 모드를 비활성화합니다.
배치 파일 스크립트 (Windows Batch Script Example)
윈도우10 시작 > Windows 설정 > 시스템 > 전원 및 절전 > 추가 전원 설정
제어판 > 하드웨어 및 소리 > 전원 옵션 > 시스템 설정 > 전원 단추 설정
>> 전원 단추를 누를 때 : 아무 것도 안 함 (Do nothing)
@echo off
REM Windows 10 Settings - When I press the power button - Do nothing - AC
powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 000
powercfg.exe /setacvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 000
REM Windows 10 Settings - When I press the power button - Do nothing - DC
powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 000
powercfg.exe /setdcvalueindex scheme_current 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 000
pause
exit
배치 파일 (Batch File) 만들기
- 메모장 또는 다른 텍스트 편집기를 엽니다.
- 위의 코드를 복사하여 텍스트 편집기에 붙여넣습니다.
- 파일을 저장합니다. 예를 들어, Windows_Settings.bat 로 저장합니다. 파일 확장자는 .bat로 지정해야 합니다.
- 배치 파일을 관리자 권한으로 실행합니다. (배치 파일을 우클릭한 후 "관리자 권한으로 실행"을 선택합니다.)
배치 파일 테스트 영상 (Batch file tested video)
영상보기 : https://youtu.be/_gfXr6qYYhg
윈도우 설정 참고 사이트 URL (Reference site URL for Windows settings)
How to Change Default Action of Power Button in Windows 10
https://www.tenforums.com/tutorials/69741-change-default-action-power-button-windows-10-a.html
Index Number | Action |
0 | Do nothing |
1 | Sleep |
2 | Hibernate |
3 | Shut down |
4 | Turn off the display |
마이크로소프트 지원 URL (Link to Microsoft Support Web Page)
Powercfg command-line options
Powercfg command-line options
You can use the powercfg.exe tool to control power schemes (also named power plans) to use the available sleep states, to control the power states of individual devices, and to analyze the system for common energy-efficiency and battery-life problems.
learn.microsoft.com
- E N D -
소프트엑스 XTRM
SOFTware unknown X of XTRM 컴퓨터 유지보수 기술 공유 채널입니다.
www.youtube.com
<소프트엑스 XTRM 추천영상>
^^*
댓글