Skip to content

Instantly share code, notes, and snippets.

@chipitsine
Created January 12, 2015 06:11
Show Gist options
  • Save chipitsine/363a60b49a19cbdedbf7 to your computer and use it in GitHub Desktop.
Save chipitsine/363a60b49a19cbdedbf7 to your computer and use it in GitHub Desktop.
evil gist
cls
import-module dism
(Get-WindowsOptionalFeature -Online).where{'$_.State -eq Disabled'} | % {
$fn = $_.FeatureName
Write-Host $fn
Disable-WindowsOptionalFeature -Online -FeatureName $fn -Remove
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment