{"id":11946,"date":"2011-12-21T15:00:00","date_gmt":"2011-12-21T15:00:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=11946"},"modified":"2011-12-21T15:00:00","modified_gmt":"2011-12-21T15:00:00","slug":"powershell-get-more-information-on-your-cmdlets","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=11946","title":{"rendered":"PowerShell: Get More Information On Your CmdLets"},"content":{"rendered":"<p>With the PowerShell Window, you can run H<em>elp<\/em> or <em>Get-Help<\/em> to go looking for information of syntax and flags.&#160; If you want, you can even use the <em>get-member<\/em> cmdlet, such as:<\/p>\n<p><font style=\"background-color: #666666\">Get-NetAdapter | Get-Member<\/font><\/p>\n<p>There\u2019s two things that are happening with the above command.&#160; Get-NetAdapter is being run, and then we\u2019re using a pipe to send the output as an input to Get-Member.&#160; Get-Member will list all of the attributes of the <em>Get-NetAdapter<\/em> output, including methods and properties.&#160; You might want to filter that down, and you can do that by running:<\/p>\n<p><font style=\"background-color: #666666\">Get-NetAdapter | Get-Member \u2013MemberType Property<\/font><\/p>\n<p>Where did I get<em> \u2013MemberType<\/em> from?&#160; Look at the titles of the columns from the previous command.&#160; One of them was called MemberType.<\/p>\n<p>I could have just as easily used:<\/p>\n<p><font style=\"background-color: #666666\">Get-NetAdapter | Get-Member \u2013Name *Interface*<\/font><\/p>\n<p>That would have limited the results to attributes of <em>Get-NetAdapter<\/em> that contained \u201cInterface\u201d in their name.<\/p>\n<p><div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:272e4cef-5e42-42b8-a1cd-4a3fe2378f72\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Scripting\" rel=\"tag\">Scripting<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PowerShell\" rel=\"tag\">PowerShell<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the PowerShell Window, you can run Help or Get-Help to go looking for information of syntax and flags.&#160; If you want, you can even use the get-member cmdlet, such as: Get-NetAdapter | Get-Member There\u2019s two things that are happening with the above command.&#160; Get-NetAdapter is being run, and then we\u2019re using a pipe to &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=11946\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PowerShell: Get More Information On Your CmdLets&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[36],"tags":[87,189],"class_list":["post-11946","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-powershell","tag-scripting"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/11946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11946"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/11946\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}