{"id":76393,"date":"2016-02-02T11:59:00","date_gmt":"2016-02-02T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2016\/02\/02\/powertip-learn-about-powershell-default-parameter-values\/"},"modified":"2019-02-18T09:20:01","modified_gmt":"2019-02-18T16:20:01","slug":"powertip-learn-about-powershell-default-parameter-values","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-learn-about-powershell-default-parameter-values\/","title":{"rendered":"PowerTip: Learn about PowerShell default parameter values"},"content":{"rendered":"<p><b>Summary<\/b>: Learn about the default parameter values in Windows PowerShell.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;How can I find more about default parameter values in Windows PowerShell?<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;Use the&nbsp;<b>Get-Help<\/b>&nbsp;cmdlet and search for&nbsp;<b>*defaultParameter*<\/b>. The following command returns a <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list of Help topics that provide this information:<\/p>\n<p style=\"margin-left:120px\">help *DefaultParameter*<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\" \" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Learn about the default parameter values in Windows PowerShell. &nbsp;How can I find more about default parameter values in Windows PowerShell? &nbsp;Use the&nbsp;Get-Help&nbsp;cmdlet and search for&nbsp;*defaultParameter*. The following command returns a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list of Help topics that provide this information: help *DefaultParameter*<\/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":[51,463,356,3,45],"class_list":["post-76393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-getting-started","tag-help","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Learn about the default parameter values in Windows PowerShell. &nbsp;How can I find more about default parameter values in Windows PowerShell? &nbsp;Use the&nbsp;Get-Help&nbsp;cmdlet and search for&nbsp;*defaultParameter*. The following command returns a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list of Help topics that provide this information: help *DefaultParameter*<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/76393","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=76393"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/76393\/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=76393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=76393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=76393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}