{"id":7401,"date":"2007-08-01T13:55:55","date_gmt":"2007-08-01T13:55:55","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2007\/08\/01\/get-wmichildnamespace\/"},"modified":"2019-02-18T13:16:36","modified_gmt":"2019-02-18T20:16:36","slug":"get-wmichildnamespace","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/get-wmichildnamespace\/","title":{"rendered":"Get-WmiChildNameSpace"},"content":{"rendered":"<p>I got sick of fiddling around with WMI namespace so I produced a really simple script to cope with this.  I call it Get-WmiNamespace:\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"margin-left: 36pt\"><span style=\"font-family:Consolas\">PS&gt; cat .\\Get-WMIChildNameSpace.ps1<br \/>param ($Namespace=&#8221;root\\cimv2&#8243;, $Computer=&#8221;.&#8221;, $Column=4)<\/p>\n<p>Get-WmiObject -Computer:$Computer -NameSpace:$NameSpace __NameSpace |Format-Wid<br \/>e -Column:$Column<br \/>PS&gt;<br \/>PS&gt; .\\Get-WmiChildNamespace.ps1<\/p>\n<p>Security            SMS                 ms_409              TerminalServices<br \/>Applications<\/p>\n<p>PS&gt; .\\Get-WmiChildNamespace.ps1 -namespace root -column 5<\/p>\n<p>subscription    DEFAULT         MicrosoftDfs    CIMV2           Cli<br \/>nap             MicrosoftIISv2  SECURITY        RSOP            WebAdministr&#8230;<br \/>WMI             directory       Policy          ServiceModel    SecurityCenter<br \/>MSAPPS12        Microsoft       aspnet          vm<\/p>\n<p>PS&gt; .\\Get-WmiChildNamespace.ps1 -namespace root\\vm -column 5<\/p>\n<p>Virtualserver<br \/>\n\t\t<\/span><\/p>\n<p>Enjoy!\n<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows Management Partner Architect<br \/>Visit the Windows PowerShell Team blog at:    <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:  <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a>\n\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got sick of fiddling around with WMI namespace so I produced a really simple script to cope with this. I call it Get-WmiNamespace: \u00a0 PS&gt; cat .\\Get-WMIChildNameSpace.ps1param ($Namespace=&#8221;root\\cimv2&#8243;, $Computer=&#8221;.&#8221;, $Column=4) Get-WmiObject -Computer:$Computer -NameSpace:$NameSpace __NameSpace |Format-Wide -Column:$ColumnPS&gt;PS&gt; .\\Get-WmiChildNamespace.ps1 Security SMS ms_409 TerminalServicesApplications PS&gt; .\\Get-WmiChildNamespace.ps1 -namespace root -column 5 subscription DEFAULT MicrosoftDfs CIMV2 Clinap MicrosoftIISv2 SECURITY [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>I got sick of fiddling around with WMI namespace so I produced a really simple script to cope with this. I call it Get-WmiNamespace: \u00a0 PS&gt; cat .\\Get-WMIChildNameSpace.ps1param ($Namespace=&#8221;root\\cimv2&#8243;, $Computer=&#8221;.&#8221;, $Column=4) Get-WmiObject -Computer:$Computer -NameSpace:$NameSpace __NameSpace |Format-Wide -Column:$ColumnPS&gt;PS&gt; .\\Get-WmiChildNamespace.ps1 Security SMS ms_409 TerminalServicesApplications PS&gt; .\\Get-WmiChildNamespace.ps1 -namespace root -column 5 subscription DEFAULT MicrosoftDfs CIMV2 Clinap MicrosoftIISv2 SECURITY [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/7401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=7401"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/7401\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=7401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=7401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=7401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}