Can a PowerShell script safely apply several Windows prank settings at once?

August 27, 2026 2 answers
Asked by Auk
Our office has a prank-friendly culture, and I'm wondering whether a PowerShell script launched from a .bat file could temporarily rotate the Windows display to portrait mode, zoom in, enlarge the cursor, invert the colors, and install the Egyptian Arabic language pack. Ideally, it would work without requiring a reboot. Is this technically possible, and what would be involved in restoring the original settings if something goes wrong?

Answers

hand_crank_
A .bat file can launch a PowerShell script, so that part is straightforward. The difficult part is that these settings use different Windows APIs and configuration mechanisms, and the language-pack installation may require elevated permissions or a sign-out/reboot. Youโ€™d also need to record the original display, accessibility, cursor, and color settings so the script can reliably undo its changes. For a workplace prank, a harmless mock-up or reversible per-user settings change would be much safer than changing system-wide configuration.
Reply to this answer
lesson_plan_B
Itโ€™s technically possible to change most of those settings, but combining them into one reliable script is much more involved than a few commands. Display rotation and accessibility settings can behave differently across Windows versions and graphics drivers, while language installation is especially likely to trigger policy restrictions or require a restart. Iโ€™d avoid deploying this on someone elseโ€™s computer unless you have explicit permission and a tested rollback script.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions