This file contains 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
# | |
# This background job automatically suspends your Workstation after a specified amount of | |
# time. It will come in handy if Windows sleep feature seems to go AWOL. | |
# | |
# start with | |
# powershell.exe -windowstyle hidden -executionpolicy Unrestricted P:\ATH\TO\logoff.ps1 | |
# | |
# `-windowstyle hidden` will make your PowerShell disappear/run in background | |
# `-executionpolicy Unrestricted` will enable this PowerShell process to allow non-signed scripts | |
# |