Eu estou tentando reduzir o tamanho do winSxS, removendo alguns recursos através do Windows PowerShell. Eu usei o seguinte comando, mas está retornando uma mensagem de erro:
PS C:\Windows\system32> Get-WindowsFeature | Where-Object -FilterScript {$_.Installed -Eq $FALSE} | Uninstall-WindowsFea
ture -Remove
The term 'Uninstall-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:101
+ Get-WindowsFeature | Where-Object -FilterScript {$_.Installed -Eq $FALSE} | Uninstall-WindowsFeature <<<< -Remove
+ CategoryInfo : ObjectNotFound: (Uninstall-WindowsFeature:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Tentei resolvê-lo importando o módulo usando este comando, mas não funcionou:
Import-Module ServerManager
Eu tentei executar o primeiro comando acima novamente, mas ele falhou com o mesmo erro.
Alguma ideia?
fonte