A non-terminating error is thrown when the namespace does not exist by Get-CimInstance. The namespace is not present on OS versions below Windows 10. It is not caught in the try-catch unless ErrorAction Stop is added. |
||
---|---|---|
.. | ||
CimCmdlets | ||
Microsoft.PowerShell.Archive | ||
Microsoft.PowerShell.Core | ||
Microsoft.PowerShell.Diagnostics | ||
Microsoft.Powershell.Host | ||
Microsoft.PowerShell.LocalAccounts | ||
Microsoft.PowerShell.Management | ||
Microsoft.PowerShell.Security | ||
Microsoft.PowerShell.Utility | ||
PackageManagement | ||
PowerShellGet | ||
PSDesiredStateConfiguration | ||
PSReadLine | ||
map.json |