How do we use CimCmdlets in Powershell Core on Linux Environment?

658 Views Asked by At

I'm trying to execute the CimCmdlets on Linux Powershell but it seems like this module is only available for windows. Is there any workaround to run these commands from cmdlets module on Linux?

https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/?view=powershell-7.2

When I run command following command I get,

Get-CimInstance

Get-CimInstance: The term 'Get-CimInstance' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

or if there's any workaround for this, that would work too

1

There are 1 best solutions below

0
On

Unfortunately it looks like MS aren't bringin the CIMCmdlets to anything bar windows: https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/?view=powershell-7.3