摘自<a title="这里" href="https://www.tenforums.com/tutorials/137670-change-default-action-shut-down-windows-dialog-windows-10-a.html" target="_blank">这里</a>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced


Start_PowerButtonAction DWORD


100 (hex) = Switch user

1 (hex) = Sign out

10 (hex) = Sleep

40 (hex) = Hibernate

2 (hex) = Shut down

4 (hex) = Restart


HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer


PowerButtonAction DWORD


(delete) = Default user choice

100 (hex) = Switch user

1 (hex) = Sign out

10 (hex) = Sleep

40 (hex) = Hibernate

2 (hex) = Shut down

4 (hex) = Restart