I have a long running powershell script and while it's running the computer goes to sleep. Is there something I can do in powershell to suspend sleeping and then at the end of the script restore it to its previous state?
I have a long running powershell script and while it's running the computer goes to sleep. Is there something I can do in powershell to suspend sleeping and then at the end of the script restore it to its previous state?