Get-WmiObject win32 classes only?
In PowerShell you can use the Get-WmiObject cmdlet to grab WMI classes.
I have noticed that I can only gain access to win32 classes, can I gain access in PowerShell to any 开发者_StackOverflow中文版other classes besides the win32_*?
get-wmiobject -list
Will give a list of available classes on your machine. Is that what you were asking?
You can also supply a namespace with the -namespace
parameter to list the classes in other namespaces besides root\CIMV2
精彩评论