Can a PowerShell prank safely change several Windows display settings at once?
Asked by
NORTH.exit
Our office has a playful prank culture, and I'm wondering whether a PowerShell script launched from a .bat file could temporarily rotate the Windows display to portrait, increase zoom and cursor size, invert the colors, and install the Egyptian Arabic language pack without requiring a reboot. I'd also want a reliable way to restore every setting afterward. Is this practical, or is it too risky and complicated to automate safely?
Answers
Some of these changes can be scripted, but they rely on different Windows APIs and system settings rather than one simple PowerShell command. Installing a language pack may require administrative rights, downloads, and sometimes a sign-out or reboot. A prank that changes accessibility and display settings without explicit consent could easily leave someone with a difficult-to-use desktop, so itโs better tested in a disposable virtual machine or avoided on a work computer.
Reply to this answer
Calling PowerShell from a batch file is common, but the batch file doesnโt make the underlying operations safer or easier. Youโd need to track the original display, scaling, cursor, contrast, and language settings, then handle failures and restore everything in the correct order. Without a tested rollback script, one error could leave the machine partially modified.
Reply to this answer
The most responsible approach is to get permission and use a harmless, reversible demo instead of altering someone elseโs workstation. If the goal is just a delayed surprise, locking your own test machine or showing a simulated settings screen is much safer than changing system configuration or installing software.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions