Skip to content

Instantly share code, notes, and snippets.

@LordVeovis
Last active December 3, 2019 01:56
Show Gist options
  • Save LordVeovis/e7bf06ae6f87a5ee645db9aeefd26c53 to your computer and use it in GitHub Desktop.
Save LordVeovis/e7bf06ae6f87a5ee645db9aeefd26c53 to your computer and use it in GitHub Desktop.
general crapware removal for windows 10 1809+
$appxPackage = @(
'Microsoft.Office.OneNote',
'Microsoft.XboxApp',
'Microsoft.WindowsFeedbackHub',
'Microsoft.XboxIdentityProvider',
'Microsoft.MixedReality.Portal',
'Microsoft.Getstarted',
'Microsoft.MinecraftUWP',
'Microsoft.MicrosoftOfficeHub',
'king.com.CandyCrushSaga',
'Fitbit.FitbitCoach',
'Microsoft.SkypeApp',
'4DF9E0F8.Netflix',
'Microsoft.Xbox.TCUI',
'Microsoft.XboxGameOverlay',
'Microsoft.XboxGamingOverlay',
'Microsoft.WindowsMaps',
'Microsoft.ZuneVideo',
'Microsoft.ZuneMusic',
'Microsoft.Messaging',
'Microsoft.People',
'Microsoft.GetHelp',
'Microsoft.Print3D',
'Microsoft.Microsoft3DViewer',
'DolbyLaboratories.DolbyAccess'
)
foreach ($app in $appxPackage) {
Get-AppxPackage $app | Remove-AppxPackage
}
function Disable-Service {
param(
[string]$Name
)
$service = Get-Service $Name
$service | Set-Service -StartupType Disabled
Stop-Service $Name
}
Disable-Service DiagTrack
Disable-Service NvTelemetryContainer
Get-ScheduledTask -TaskPath "\Microsoft\Windows\Customer Experience Improvement Program\" | Disable-ScheduledTask
Get-ScheduledTask -TaskPath "\Microsoft\Windows\Feedback\*" | Disable-ScheduledTask
Get-ScheduledTask -TaskPath "\Microsoft\Windows\DiskDiagnostic\" | Disable-ScheduledTask
Get-ScheduledTask -TaskPath "\" | Where-Object { $_.TaskName -clike 'NvTm*' } | Disable-ScheduledTask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment