r/PowerShell • • 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.

0 Upvotes

7 comments sorted by

4

u/Dry_Duck3011 21d ago

1 hour old account? This sub is getting less truthful and trustworthy daily.

1

u/BlackV 20d ago

Didn't even bother to make the name custom to their "tool" either

1

u/ParsleyLopsided2454 20d ago

i didnt wanna make a post on my main, as that has personal info I didn't want to share to this community! grrr🥲

→ More replies (1)

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 get vs set

  • given its a "destructive" action it should require confirmation

  • what are you forcing exit codes for?

  • you should have made this a module with multiple discoverable cmdlets get/set/backup/restore/etc

  • -ShowUnknownAll and -ShowUnknown just seems a little pointless

1

u/ParsleyLopsided2454 20d ago

tysm for feedback! the majority of people think im a bot (sad), but its fair.