{"id":1316,"date":"2014-05-19T11:59:00","date_gmt":"2014-05-19T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2014\/05\/19\/powertip-use-powershell-to-find-things-to-get\/"},"modified":"2014-05-19T11:59:00","modified_gmt":"2014-05-19T11:59:00","slug":"powertip-use-powershell-to-find-things-to-get","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-use-powershell-to-find-things-to-get\/","title":{"rendered":"PowerTip: Use PowerShell to Find Things to Get"},"content":{"rendered":"<p><b>Summary<\/b>: Use Windows PowerShell to find commands that &ldquo;get&rdquo; stuff.<\/p>\n<p><img decoding=\"async\" alt=\"Hey, Scripting Guy! Question\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\">&nbsp;How can I find Windows PowerShell commands that can find stuff about disks or other Windows components?<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" alt=\"Hey, Scripting Guy! Answer\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\">&nbsp;Use the&nbsp;<b>Get-Command<\/b>&nbsp;cmdlet, specify the verb as&nbsp;<b>Get<\/b>, and then use wildcard characters to specify the noun. <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (In the following examples,&nbsp;<b>GCM<\/b>&nbsp;is an alias for the&nbsp;<b>Get-Command<\/b>&nbsp;cmdlet).<\/p>\n<p style=\"margin-left:90px\">To find cmdlets that return information about disks:<\/p>\n<p style=\"margin-left:120px\">gcm -verb get -noun *disk*<\/p>\n<p style=\"margin-left:90px\">To find cmdlets that return information about networks:<\/p>\n<p style=\"margin-left:120px\">gcm -verb get -noun *network*<\/p>\n<p style=\"margin-left:90px\">To find cmdlets that return information about DNS:<\/p>\n<p style=\"margin-left:120px\">gcm -verb get -noun *dns*<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Use Windows PowerShell to find commands that &ldquo;get&rdquo; stuff. &nbsp;How can I find Windows PowerShell commands that can find stuff about disks or other Windows components? &nbsp;Use the&nbsp;Get-Command&nbsp;cmdlet, specify the verb as&nbsp;Get, and then use wildcard characters to specify the noun. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (In the following examples,&nbsp;GCM&nbsp;is an alias for the&nbsp;Get-Command&nbsp;cmdlet). [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[356,3,45],"class_list":["post-1316","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Use Windows PowerShell to find commands that &ldquo;get&rdquo; stuff. &nbsp;How can I find Windows PowerShell commands that can find stuff about disks or other Windows components? &nbsp;Use the&nbsp;Get-Command&nbsp;cmdlet, specify the verb as&nbsp;Get, and then use wildcard characters to specify the noun. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (In the following examples,&nbsp;GCM&nbsp;is an alias for the&nbsp;Get-Command&nbsp;cmdlet). [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/1316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=1316"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/1316\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=1316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=1316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=1316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}