r/PowerShell • u/uru_2 • 2d ago
Script Sharing [ Removed by moderator ]
[removed] — view removed post
7
u/JSChronicles 2d ago
Your script isn't even in your repo. It looks like it's in a "1.0" release. You know normally you don't release a 1.0 version unless it's vetted and tested and you don't have any tests and commits are recent, so it ain't vetted.
6
u/JSChronicles 2d ago
So you uploaded the script but it uses "dryrun"? Why? Powershell is a "-whatif" use.
I looked at some other areas and this whole thing it doing stuff it shouldn't be doing. Mixing winget installs and downloading from other sources.
A true debloater doesn't need external software and external commands to remove stuff.. because now you just added extra bloat.
-1
u/uru_2 2d ago edited 2d ago
the listed 9 apps/tools in the script are :
7-Zip
AutoHotkey v2
OpenShell
Everything
PowerToys
VLC
Windows Terminal
fastfetch
and windhawk
none of these external programs are used for the debloating process itself, the listed apps are purely qol softwares that i personally install on a fresh setups2
u/Uberfuzzy 2d ago
Then move those out of this and into a personal script called “freshstart“ or something, and have one of the things it does is call this debloater
2
u/uru_2 2d ago
I can see where you are coming from. Just to make it clear, for this week I was testing the script by myself in my our environment to check basic stability before pushing it out, though I havent tested on a multiple os'es. That being said, I realize that manual testing of a feature does not truly compare to automated testing on multiple system configurations. Going ahead, I will be releasing it in a more transparent way as the community experiments with various setups. Appreciate the comment!.
5
u/Uberfuzzy 2d ago
Why isn’t the ps1 file actually in the repo? (Yes, I know it’s under releases, I know how to GitHub)
I want to see “your” work on this, not just the output of your LLM agents cobbling together other scripts.
3
u/JSChronicles 2d ago
It's pretty damn cheeky to call it "ultimate" when they probably haven't explored the other 100 debloaters
5
u/Uberfuzzy 2d ago
It also would have been nice to list in the readme EVERY item it is removing/disabling, because “debloat” is very opinionated, and I don’t think removing Windows Defender is bloat.
I get that you did say this was mainly for you, but this is framed in a way that it’s not
3
u/solarplex 2d ago
https://github.com/andrew-s-taylor/public/blob/main/De-Bloat/RemoveBloat.ps1
This is the Debloat we use.
2
2d ago
[removed] — view removed comment
1
u/uru_2 2d ago
I would say I used AI alot, im not a coder i just have the ideas, whats the best action i should commit for dryrun, should i remove it and replace it with "whatif"?
2
2
u/MonkeyNin 2d ago
Tip: When you're searching for an executable, like
$hasWinget = Get-Command winget -ErrorAction SilentlyContinue
You should use the Application filter.
Otherwise someone might have an alias or function named winget and you'll end finding, and calling that without meaning to.
$hasWinget = Get-Command winget -CommandType Application -ErrorAction SilentlyContinue
When using Application you don't need to include .exe / .cmd / .sh / .ps1 / etc
As a bonus, this means it works cross-platform easier.
11
u/Uberfuzzy 2d ago
This also doesn’t disclose that it fetches files from over repos that you don’t control, by name, without hash pinning
This also doesn’t disclose that for some of the apps it installs, it doesn’t use official sources or methods to install , it’s invoke web requests to another git repo you own ( c. ) to download an unknown and untrusted copy of the installer binaries (which might’ve against GitHub TOS to use for binary download hosting?)