image is missing Get-WindowsFeature cmdlet

Occasional Contributor

I have a problem with the new windows-insider Docker image.
The PowerShell command Get-WindowsFeature does not work at all.

$ docker run powershell -Command Get-WindowsFeature
Get-WindowsFeature : The term 'Get-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:1
+ Get-WindowsFeature
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-WindowsFeature:String) [],
+ FullyQualifiedErrorId : CommandNotFoundException

But with the smaller windowsservercore-insider it works:

$ docker run powershell -Command Get-WindowsFeature

Display Name Name
------------ ----
[ ] Active Directory Certificate Services AD-Certificate
[ ] Certification Authority ADCS-Cert-Authority
[ ] Certificate Enrollment Policy Web Service ADCS-Enroll-Web-Pol

Is there a plan to add these PowerShell commands to add other Windows features?

0 Replies