{"id":87,"date":"2014-05-29T16:00:42","date_gmt":"2014-05-29T20:00:42","guid":{"rendered":"http:\/\/blog.metcorp.org\/?p=87"},"modified":"2014-06-09T21:51:29","modified_gmt":"2014-06-10T01:51:29","slug":"powershell-useful-wmi-classes","status":"publish","type":"post","link":"https:\/\/adsecurity.org\/?p=87","title":{"rendered":"PowerShell: Useful WMI Classes"},"content":{"rendered":"<div>Here are some WMI Classes I have found useful:<\/div>\n<ul>\n<li>Get-WmiObject -Class Win32_BIOS<\/li>\n<li>Get-WmiObject -Class Win32_ComputerSystem<\/li>\n<li>Get-WmiObject -Class Win32_OperatingSystem<\/li>\n<li>Get-WmiObject -Class Win32_NetworkAdapter<\/li>\n<li>Get-WmiObject -Class Win32_<wbr \/>NetworkAdapterConfiguration<\/li>\n<li>Get-WmiObject -Class Win32_Product<\/li>\n<\/ul>\n<div><\/div>\n<div><strong><span style=\"text-decoration: underline;\">Enumerating Win32 WMI Classes:<\/span><\/strong><\/div>\n<div>[array]$WMINames = Get-WmiObject -Query &#8216;Select * From Meta_Class WHERE __Class LIKE &#8220;win32%&#8221;&#8216; |<\/div>\n<div>Where-Object { $_.PSBase.Methods } |<\/div>\n<div>Select-Object Name, Methods<\/div>\n<div><\/div>\n<div>$WMINames = $WMINames | sort -Property Name<\/div>\n<div><\/div>\n<div>$WMINames<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here are some WMI Classes I have found useful: Get-WmiObject -Class Win32_BIOS Get-WmiObject -Class Win32_ComputerSystem Get-WmiObject -Class Win32_OperatingSystem Get-WmiObject -Class Win32_NetworkAdapter Get-WmiObject -Class Win32_NetworkAdapterConfiguration Get-WmiObject -Class Win32_Product Enumerating Win32 WMI Classes: [array]$WMINames = Get-WmiObject -Query &#8216;Select * From Meta_Class WHERE __Class LIKE &#8220;win32%&#8221;&#8216; | Where-Object { $_.PSBase.Methods } | Select-Object Name, Methods $WMINames = $WMINames &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/adsecurity.org\/?p=87\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-technical-reference","item-wrap"],"_links":{"self":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":1,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/adsecurity.org\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adsecurity.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}