SleepManager

1.0.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.

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 -RequiredVersion 1.0.0

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

Install-PSResource -Name SleepManager -Version 1.0.0

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

Disable-ComputerSleep Enable-ComputerSleep Invoke-WithoutSleep

Dependencies

Release Notes

Initial release - Provides functions to disable/enable computer sleep mode and execute code blocks with sleep prevention using Windows API.

FileList

Version History

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