Open panos-coupa opened 3 years ago
PowerShell 7.1.2 confirm this behavior. At PS 5.1 not problem with this comandlet I try to run this command at PS 7 Get-WindowsCapability -Online -LogPath "%WINDIR%\Logs\Dism\capability.log" -LogLevel WarningsInfo| ? Name -like 'OpenSSH' and try to run this command at PS 5 Get-WindowsCapability -Online -LogPath "%WINDIR%\Logs\Dism\capability5.log" -LogLevel WarningsInfo| ? Name -like 'OpenSSH' capability5.log capability.log Logs attached.
Since I stumbled about somthing like this some time ago it would be interesting if the problem persits if you load the dism module with -SkipEditionCheck
-SkipEditionCheck is not available as a parameter for the Get-WindowsCapability command. -verbose and -debug do nothing as well
My mistake. I wasn't quite clear enough.
You need to import the Module like this:
Import-Module -SkipEditionCheck DISM
Some commands in the DISM module are not running
for example:
Same goes for Remove-WindowsOptionalFeature and Remove-WindowsCapablility
My system is: Windows 10 Enterprise v2004 My Powershell is: PowerShell 7.1.0-rc.2
Thanks for your time