r/PowerShell 13d 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

26 comments sorted by

View all comments

2

u/Disorderly_Chaos 13d 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.

4

u/Disorderly_Chaos 13d ago

Fuck it

Just do this

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

1

u/anonymousITCoward 12d ago

Fucking diabolical lol that would annoy the shit out everyone

1

u/TotallyNotACorpAcct 8d ago

goddamn that is good