-
I'm getting " Get-WMIObject : The term 'Get-WMIObject' 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. " error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/get-ciminstance?view=powershell-5.1 Could you explain more about the scenario where you get that error? Like OS version, PowerShell version and anything else that can help, because I can't reproduce it on my side. You too! |
Beta Was this translation helpful? Give feedback.
-
can be ignored (problem is on my end🤕)🤷🏽♀️ |
Beta Was this translation helpful? Give feedback.
Hi,
The hardening script no longer uses
Get-WMIObject
and instead uses the more modernGet-CimInstance
.https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/get-ciminstance?view=powershell-5.1
Could you explain more about the scenario where you get that error? Like OS version, PowerShell version and anything else that can help, because I can't reproduce it on my side.
You too!