Replies: 2 comments
|
Have checked the Get-CimInstance version and it shows x64 which is correct for me. |
0 replies
|
Use Windows Powershell to check Windows status |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Perplexity suggests this solution:
The supported modern replacement in PowerShell 7 is:
Get-CimInstance for querying WMI classes and data, for example:
Get-CimInstance -ClassName Win32_LogicalDisk
Get-CimInstance -Query "SELECT * FROM Win32_OperatingSystem"
Get-CimInstance uses the newer CIM/WS-Man stack and is the approach Microsoft documents and recommends for PowerShell 7 instead of Get-WmiObject
Do you agree?
Thank you for your help.
All reactions