Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Get-WMIObject with Get-CimInstance for PS7 support #523

Merged
merged 1 commit into from
May 20, 2020
Merged

Replace Get-WMIObject with Get-CimInstance for PS7 support #523

merged 1 commit into from
May 20, 2020

Conversation

basroovers
Copy link
Contributor

This is somewhat related to #522

Where I ran into issues with the generator. I tried to run it in Powershell 7.0.1 but found out that Get-WMIObject is no longer supported as Powershell 7 is based on .Net Core and .Net Core does not support WMI. We will have to use Get-CimInstance instead.

@carlpett
Copy link
Collaborator

Nice catch, thanks!

@carlpett carlpett merged commit 245b2b4 into prometheus-community:master May 20, 2020
anubhavg-icpl pushed a commit to anubhavg-icpl/windows_exporter that referenced this pull request Sep 22, 2024
Replace Get-WMIObject with Get-CimInstance for PS7 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants