Skip to content
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

Closed
loadstring1 opened this issue May 9, 2024 · 11 comments
Closed

feature request: launch debloat script with one liner #55

loadstring1 opened this issue May 9, 2024 · 11 comments
Assignees

Comments

@loadstring1
Copy link
Contributor

loadstring1 commented May 9, 2024

Something similiar to what MAS has. Launch the script with one liner (method 1) without having to download the entire github repo.

example screenshot:
Zrzut ekranu 2024-05-09 205906

@loadstring1
Copy link
Contributor Author

loadstring1 commented May 9, 2024

Actually i just made one for you pls review my idea

pull request related to this issue: #56

@loadstring1
Copy link
Contributor Author

loadstring1 commented May 9, 2024

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)

irm https://raw.githubusercontent.com/loadstring1/Win11Debloat/master/get.ps1 | iex

@Abyssal-Fox
Copy link

I'm not sure if this one liner could be combined with the RemoveAppsCustom list. But I assuming that it may be possible...

@Raphire
Copy link
Owner

Raphire commented May 14, 2024

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 :)

@Raphire Raphire self-assigned this May 14, 2024
@loadstring1
Copy link
Contributor Author

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

Raphire added a commit that referenced this issue May 20, 2024
Fixed bug that caused some apps not to show up in the app selection UI

Co-authored-by: loadstring1 <156520308+loadstring1@users.noreply.github.com>
@Raphire
Copy link
Owner

Raphire commented May 20, 2024

@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 😎

@loadstring1
Copy link
Contributor Author

@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

@ilyesm
Copy link

ilyesm commented May 22, 2024

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?

@Raphire
Copy link
Owner

Raphire commented May 22, 2024

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/

@loadstring1
Copy link
Contributor Author

Winget followed by running the line?

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

Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe

Zrzut ekranu 2024-05-22 165426

@Raphire
Copy link
Owner

Raphire commented May 22, 2024

Winget followed by running the line?

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

Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe

Zrzut ekranu 2024-05-22 165426

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants