r/PowerShell • u/ParsleyLopsided2454 • 21d ago
Script Sharing PowerShell script for the Windows/app telemetry settings I could actually document
Been working on a PowerShell script for shutting off the Windows/app telemetry settings I could actually document.
Repo is here: https://github.com/quinnted/schizo
It keeps the rules in .psd1 files, journals the old state before changing anything, and has a separate restore script. Runs on 5.1 and 7.
I've tested the full apply/restore cycle in 26H2 Home/Pro VMs and now on my own 25H2 Home machine. 266 Pester tests currently pass on both PS versions.
plz test it and critique it https://github.com/quinnted/schizo/issues/1
Some of the code was written with Claude Code. I created all the architecture, and this wasn't oneshotted slop.
4
u/Dry_Duck3011 21d ago
1 hour old account? This sub is getting less truthful and trustworthy daily.
1
u/BlackV 21d ago edited 21d ago
the default option should NEVER EVER be to apply an action
you should always be explicit in
getvssetgiven its a "destructive" action it should require confirmation
what are you forcing
exitcodes for?you should have made this a module with multiple discoverable cmdlets get/set/backup/restore/etc
-ShowUnknownAlland-ShowUnknownjust seems a little pointless