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
2
u/CitizenDee Aug 27 '26
And people wonder why IT departments lock work PC's and laptops down tighter than fishes arseholes.
7
u/Fatel28 Aug 27 '26
What does a bat script have to do with powershell
4
u/PDQ_Brockstar Aug 27 '26
One day when my coworker left their computer unlocked, I took a picture of their desktop, set it as their wallpaper, then hid all their desktop icons.
It was all fun and games until I saw them reimaging their computer. At that point it was too late to confess and fix it for them. In my defense, they rebooted it once, and when that didn't fix it, they imaged it. I figured they'd at least try to troubleshoot it a bit.
4
u/GateheaD Aug 27 '26
Nope it's not possible, go find something else to do and leave the computer out of it.
2
u/Disorderly_Chaos Aug 27 '26
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.
2
u/StartAutomating Sep 03 '26 edited Sep 03 '26
Yes, but please don't.
A lifetime ago I did a similar "prank" on VBScript : I made the keyboard layout reverse itself.
One of the longest days of my life. Not only did I have to support the fix and unprank them, but it was just the category of impishness that created a lot more rage than laughs.
By and large, people do not like it when you mess with "their" computer (even if they do not actually own the computer). They get Hulk levels of angry.
Yes. Technically possible. No, would not recommend. Will also not be pointing you in any of the "right" directions in order to accomplish this particular task. It is a lot of effort to go to, only to get you yelled at (and potentially fired).
Please don't.
2
u/Madmin404 Sep 04 '26
Don't forget to change some of the Windows sound program events, like adding the Windows Error sound to Close Program
1
u/BlackV Aug 28 '26 edited Aug 29 '26
Pass, given most off what you're asking for would require admin rights on the target machines, I would not be suggesting a script to use my admin rights to do shifty stuff
do some thing better
1
u/Tachaeon Aug 31 '26
https://github.com/Tachaeon/Powershell-Pranks
1
u/Glum-Highlight2734 Sep 01 '26
Maybe or Maybe Not because we need to restart pc for some changings