Last active
November 13, 2023 16:49
-
-
Save rey/0d746b8aef385eb160899fd9be8dc50a to your computer and use it in GitHub Desktop.
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
# Powershell one-liner to prevent idle / sleep | |
# https://www.reddit.com/r/PowerShell/comments/ikrouy/comment/g3nd845/ | |
1..9999|ForEach-Object {$S = New-Object -Com "Wscript.Shell"}{Sleep -S (30+$S.Sendkeys("+"))} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't throw a
nerrorproblem: