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?
2 Answers
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.
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.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures