r/PowerShell 5d ago

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

23 comments sorted by

View all comments

2

u/Disorderly_Chaos 5d ago

That’s like 500 lines worth of code, my dude. And then you’d have to write code that INJECTS code to un-fuck the desktop. … and if anything goes wrong… you’re hosed.

3

u/Disorderly_Chaos 5d ago

Fuck it

Just do this

start-sleep (get-random -min 3600 -max 7200);rundll32.exe user32.dll,LockWorkStation

1

u/TotallyNotACorpAcct 13h ago

goddamn that is good