Uninstall-WindowsFeature Uninstalls specified Windows Server roles, role services, and features from a computer that is running Windows Server 2012. By adding the Remove parameter, also deletes feature files, or payload, from a computer. This cmdlet replaces Remove-WindowsFeature, the cmdlet that was used to uninstall roles, role services, and features in Windows Server 2008 R2.
Experimente Remove-WindowsFeature
em vez de Uninstall-WindowsFeature
Lembre-se de que não há nenhum parâmetro -remove
para esse cmdlet, então seu comando seria:
Get-WindowsFeature | Where-Object -FilterScript {$.Installed -eq $FALSE} | Remove-WindowsFeature
Não acho que isso reduza o tamanho da sua pasta do WinSxS. tente o Cleanmgr ferramenta em vez