SleepManager
1.1.0
PowerShell module for managing computer sleep and display power states using Windows API. Provides functions to disable/enable sleep mode and execute code blocks with sleep prevention. Includes comprehensive logging via RunLog module with support for custom logger instances.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2025. All rights reserved.
Package Details
Author(s)
- aaturpin
Tags
Sleep Power Windows API System Display PowerManagement Logging
Functions
Initialize-DefaultLogger Set-SleepManagerLogger Get-SleepManagerLogger Disable-ComputerSleep Enable-ComputerSleep Invoke-WithoutSleep
Dependencies
-
- RunLog (>= 2.0.0)
Release Notes
Version 1.1.0 - Added support for custom RunLogger instances via Set-SleepManagerLogger and Get-SleepManagerLogger functions. Users can now provide their own logger configuration or integrate with existing logging infrastructure.
FileList
- SleepManager.nuspec
- README.md
- SleepManager.psd1
- SleepManager.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
1.1.0 (current version) | 6 | 5/29/2025 |
1.0.0 | 5 | 5/28/2025 |