functionExplore-WMI { # find all WMI classes that start with "Win32_"... $class = Get-WmiObject-Class Win32_* -List | # exclude performance counter classes... Where-Object { $_.Name -notlike'Win32_Perf*' } | # exclude classes with less than 6 properties... Where-Object { $_.Properties.Count -gt5 } | # let the user select one of the found classes Out-GridView-Title'Select one'-OutputMode Single
# display selected class name Write-Warning"Klassenname: $($class.Name)"
# query class... Get-WmiObject-Class$class.Name | # and show all of its properties Select-Object-Property *