Skip to content

bruno-frederic/RestartManager

 
 

Repository files navigation

Windows Restart Manager Module for PowerShell

This module exposes Windows Restart Manager APIs through PowerShell cmdlets for testing applications' compatibility with Windows Restart Manager and for basic scripted installs.

Build Status CodeCov GitHub Release PSGallery

Examples

You can use this module to, for example, replace files that may be in use by other processes.

Start-RestartManagerProcess
dir .\MyApp -Filter *.dll -Recurse | Register-RestartManagerResource
Stop-RestartManagerProcess
Expand-Archive .\MyApp.zip .\MyApp -Force
Restart-RestartManagerProcess
Stop-RestartManagerProcess

You can also use this module to just figure out what processes may be using certain files.

Start-RestartManagerProcess
dir .\MyApp -Filter *.dll -Recurse | Register-RestartManagerResource
Get-RestartManagerProcess
Stop-RestartManagerProcess

For more examples and help content, please see the wiki.

Feedback

To file issues or suggestions, please use the Issues page for this project on GitHub.

License

This project is licensed under the MIT license.

About

Managed Windows Restart Manager API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.5%
  • PowerShell 1.4%
  • Batchfile 0.1%