Thursday, September 11, 2014

Cleanup WinSxS

Cleanup WinSxS with PowerShell, remove features on demand in Windows Server 2012.

001
Get-WindowsFeature | where-object{$_.Installed -eq 0 -and $_.InstallState -eq 'Available'}


001
Get-WindowsFeature | where-object{$_.Installed -eq 0 -and $_.InstallState -eq 'Available'| uninstall-windowsfeature -remove

No comments:

Post a Comment