Reputation: 1369
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
Reputation: 91
you can get a list of all WMI Classes in powershell..
Get-WmiObject –List
Hope that helps !!!!
Upvotes: 3
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