Find WMI namespaces installed on a system

function get-namespace {
param ([string]$name)
Get-WmiObject -Namespace $name -Class “__NAMESPACE” | foreach {
“$name” + $_.Name
get-namespace $(“$name” + $_.Name)
}
}
“root”
get-namespace “root”

Leave a Reply

Your email address will not be published. Required fields are marked *