Vindhya G
Vindhya G

Reputation: 1369

How to get wmi providers registered in the system

I Want to know/get all the wmi providers registered in a system.

Can i get using powershell command?

Thanks in advance

Upvotes: 0

Views: 3971

Answers (2)

Ochen Ao
Ochen Ao

Reputation: 91

you can get a list of all WMI Classes in powershell..

Get-WmiObject –List

Hope that helps !!!!

Upvotes: 3

Dirk
Dirk

Reputation: 676

function Get-Providers ($ns="root") {
   Get-WmiObject -Namespace $ns -Class "__NAMESPACE" |
   foreach {
       Get-WmiObject -NameSpace $currNameSpace -Class __Win32Provider | select @{n="Namespace";e=    {$("$ns\" + $_.Name)}},@{n="Provider";e={$_.Name}}
       Get-Providers $("$ns\" + $_.Name) 
   } 
}

Upvotes: 2

Related Questions