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

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name SleepManager

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name SleepManager

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

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

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

Version History

Version Downloads Last updated
1.1.0 (current version) 6 5/29/2025
1.0.0 5 5/28/2025