Last active
November 29, 2022 10:58
-
-
Save acosonic/2dd3c20a06a6003cf1c1792987a3a6ff to your computer and use it in GitHub Desktop.
Windows 10 removal of bloatware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Disabling UAC" | |
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name EnableLUA -Value 0 | |
Write-Host "Disabling screen off on AC" | |
powercfg -change -monitor-timeout-ac 0 | |
Write-Host "Disabling auto update" | |
## Stop Windows Update | |
Stop-Service -Name wuauserv | |
## Disable auto startup for Windows Update | |
Set-Service -Name wuauserv -StartupType Disabled | |
Write-Host "Installing choco" | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
Write-Host "Deinstalling bloatware" | |
Get-AppxPackage *3dbuilder* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowsalarms* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowscalculator* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowscommunicationsapps* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowscamera* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowsstore* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *officehub* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *skypeapp* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *getstarted* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *zunemusic* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowsmaps* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *solitairecollection* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *bingfinance* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *zunevideo* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *bingnews* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *onenote* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *people* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *windowsphone* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *photos* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *bingsports* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *soundrecorder* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *bingweather* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *xbox* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage Microsoft.MixedReality.Portal -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *feedbackhub* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage *3dviewer* -AllUsers | Remove-AppxPackage | |
Get-AppxPackage Microsoft.YourPhone -AllUsers | Remove-AppxPackage | |
ps onedrive | Stop-Process -Force | |
start-process "$env:windir\SysWOW64\OneDriveSetup.exe" "/uninstall" | |
Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match "xbox" } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment