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

0
0
Asked By MellowCedar42 On

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

Answered By BlueRook_81 On

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.

Answered By QuartzPanda7 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.