This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Monitors HID devices and puts system to sleep when all devices are disconnected. | |
| .DESCRIPTION | |
| This script monitors the connection and disconnection of HID (Human Interface Device) class devices. | |
| When all HID devices are disconnected, it automatically puts the system into sleep mode. | |
| The script can also be installed as a startup task using the -Install parameter. | |
| .PARAMETER Install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| A PowerShell HTTP listener that handles system power management requests. | |
| .DESCRIPTION | |
| This script creates an HTTP listener that can control system sleep, restart and shutdown states. | |
| It requires initial installation with admin rights, after which it runs automatically on system startup. | |
| .PARAMETER Install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters] | |
| "SystemRemoteWakeSupported"=dword:00000001 |