{"id":2589,"date":"2013-11-09T11:59:00","date_gmt":"2013-11-09T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/11\/09\/powertip-use-powershell-to-display-syntax-for-a-cmdlet\/"},"modified":"2013-11-09T11:59:00","modified_gmt":"2013-11-09T11:59:00","slug":"powertip-use-powershell-to-display-syntax-for-a-cmdlet","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-use-powershell-to-display-syntax-for-a-cmdlet\/","title":{"rendered":"PowerTip: Use PowerShell to Display Syntax for a Cmdlet"},"content":{"rendered":"<p><strong>Summary<\/strong>: Use Windows PowerShell to display the syntax of a Windows PowerShell cmdlet.<\/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 use Windows PowerShell to look at the syntax of a cmdlet without the distraction of a lot of additional information?<\/p>\n<p style=\"padding-left: 60px\"><span class=\"Apple-tab-span\"> <img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\"> <\/span>Use the&nbsp;<strong>Get-Help<\/strong>&nbsp;cmdlet, and choose only the&nbsp;<strong>Syntax<\/strong>&nbsp;property.&nbsp;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (The following example uses the&nbsp;<strong>Get-Process<\/strong>&nbsp;cmdlet):<\/p>\n<p style=\"padding-left: 120px\">PS C:&gt; (get-help get-process).syntax<\/p>\n<p style=\"padding-left: 120px\">&nbsp;<\/p>\n<p style=\"padding-left: 120px\">Get-Process [[-Name] &lt;String[]&gt;] [-ComputerName &lt;String[]&gt;] [-FileVersionInfo]<\/p>\n<p style=\"padding-left: 120px\">[-Module] [&lt;CommonParameters&gt;]<\/p>\n<p style=\"padding-left: 120px\">Get-Process [-ComputerName &lt;String[]&gt;] [-FileVersionInfo] [-Module] -InputObject<\/p>\n<p style=\"padding-left: 120px\">&lt;Process[]&gt; [&lt;CommonParameters&gt;]<\/p>\n<p style=\"padding-left: 120px\">Get-Process [-ComputerName &lt;String[]&gt;] [-FileVersionInfo] [-Module] -Id &lt;Int32[]&gt;<\/p>\n<p style=\"padding-left: 120px\">[&lt;CommonParameters&gt;]<\/p>\n<p style=\"padding-left: 120px\">Get-Process -Id &lt;Int32[]&gt; -IncludeUserName [&lt;CommonParameters&gt;]<\/p>\n<p style=\"padding-left: 120px\">Get-Process -IncludeUserName -InputObject &lt;Process[]&gt; [&lt;CommonParameters&gt;]<\/p>\n<p style=\"padding-left: 120px\">Get-Process [[-Name] &lt;String[]&gt;] -IncludeUserName [&lt;CommonParameters&gt;]&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Use Windows PowerShell to display the syntax of a Windows PowerShell cmdlet. &nbsp;How can I use Windows PowerShell to look at the syntax of a cmdlet without the distraction of a lot of additional information? Use the&nbsp;Get-Help&nbsp;cmdlet, and choose only the&nbsp;Syntax&nbsp;property.&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (The following example uses the&nbsp;Get-Process&nbsp;cmdlet): PS C:&gt; (get-help get-process).syntax [&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":[463,356,3,4,45],"class_list":["post-2589","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-help","tag-powertip","tag-scripting-guy","tag-scripting-techniques","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Use Windows PowerShell to display the syntax of a Windows PowerShell cmdlet. &nbsp;How can I use Windows PowerShell to look at the syntax of a cmdlet without the distraction of a lot of additional information? Use the&nbsp;Get-Help&nbsp;cmdlet, and choose only the&nbsp;Syntax&nbsp;property.&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (The following example uses the&nbsp;Get-Process&nbsp;cmdlet): PS C:&gt; (get-help get-process).syntax [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2589","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=2589"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/2589\/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=2589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=2589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=2589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}