r/PowerShell • u/Holtake • Aug 27 '26
Question Prank script
We have a culture of pranks here at the office. I’d like to create a PowerShell script that, when executed via a .bat file, rotates the Windows screen to portrait mode, zooms in, increases the cursor scale, inverts the colors, and installs the Egyptian Arabic language pack—all without requiring a reboot or anything like that. Is this possible?
0
Upvotes
View all comments
Show parent comment
4
u/Disorderly_Chaos Aug 27 '26
Fuck it
Just do this
start-sleep (get-random -min 3600 -max 7200);rundll32.exe user32.dll,LockWorkStation