New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: launch debloat script with one liner #55
Comments
Actually i just made one for you pls review my idea pull request related to this issue: #56 |
and heres the one liner that i just made it works perfectly tested on windows 11 22h2 home edition (must be ran with admin perms)
|
I'm not sure if this one liner could be combined with the RemoveAppsCustom list. But I assuming that it may be possible... |
Heya, This has actually been requested before in issue #39 I'll look into this and your PR this weekend when I have more time :) |
thank you my script won't support every each windows version because it uses winget to install git then clones your repo and runs "run.bat" which then starts your debloat script its not the best but works like i wanted it to work |
@loadstring1 Thanks for taking the time to work on Win11Debloat. I have adapted your solution provided in #56 to include support for parameters and, among a few other changes, added a check to ensure WinGet is installed. See: 7e89991 The command to run doesn't look as clean, but it'll do the job and avoids using Invoke-Expression (iex). This article by Microsoft explains why iex should be avoided if possible. Closing issue as resolved 😎 |
thank you for allowing me to contribute to this project |
We are trying to dpeloy this using our RMM for onboarding automation. How do you suggest we fix cases when winget is not installed? Install Winget followed by running the line? |
You could alternatively look into one of the other methods to run the script, but I think in your case simply installing WinGet may be the best option This article has more information about WinGet that may be helpful: https://learn.microsoft.com/en-us/windows/package-manager/winget/ |
yes here is 1 line of code example from microsoft article that Raphire sent you this will install winget and i think you need to reboot because for me it didnt work until i rebooted
|
The reason why winget is not immediately recognized is because it won't be added to the path variable for the current powershell session. It should work if you start a new powershell session |
Something similiar to what MAS has. Launch the script with one liner (method 1) without having to download the entire github repo.
example screenshot:
The text was updated successfully, but these errors were encountered: