{"id":4137,"date":"2013-02-19T11:59:00","date_gmt":"2013-02-19T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2013\/02\/19\/powertip-change-powershell-to-display-more-info-by-default\/"},"modified":"2013-02-19T11:59:00","modified_gmt":"2013-02-19T11:59:00","slug":"powertip-change-powershell-to-display-more-info-by-default","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-change-powershell-to-display-more-info-by-default\/","title":{"rendered":"PowerTip: Change PowerShell to Display More Info by Default"},"content":{"rendered":"<p><strong style=\"font-size: 12px\">Summary:<\/strong><span style=\"font-size: 12px\">&nbsp;Change Windows PowerShell so that it will display more information by default.<\/span><\/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;I pipe information and select certain properties, but the information in my table is truncated. Using Autosize or Wrap does not help. How can I change Windows PowerShell so that it displays the information contained in the property?<\/p>\n<p style=\"padding-left: 60px\"><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;You are running into&nbsp;<strong>$FormatEnumerationLimit<\/strong>. By default, it is set to 4, but by changing it to a higher number, you can force Windows PowerShell to display additional information. The default behavior is shown here:<\/p>\n<p style=\"padding-left: 120px\">PS C:\\&gt; Get-Service -Name winmgmt | ft name, DependentServices -AutoSize<\/p>\n<p style=\"padding-left: 120px\">Name&nbsp;&nbsp;&nbsp; DependentServices<\/p>\n<p style=\"padding-left: 120px\">&#8212;-&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"padding-left: 120px\">winmgmt {wscsvc, vmms, SUService, SharedAccess&#8230;}<\/p>\n<p style=\"padding-left: 120px\">&nbsp;PS C:\\&gt; $FormatEnumerationLimit<\/p>\n<p style=\"padding-left: 120px\">4<\/p>\n<p style=\"padding-left: 60px\">By assigning a new value to&nbsp;<strong>$FormatEnumerationLimit<\/strong>, the remaining&nbsp;<strong>DependentServices<\/strong>&nbsp;is displayed. This technique is shown here:<\/p>\n<p style=\"padding-left: 120px\">PS C:\\&gt; $FormatEnumerationLimit = 8<\/p>\n<p style=\"padding-left: 120px\">PS C:\\&gt; Get-Service -Name winmgmt | ft name, DependentServices -AutoSize -Wrap<\/p>\n<p style=\"padding-left: 120px\">&nbsp;Name&nbsp;&nbsp;&nbsp; DependentServices<\/p>\n<p style=\"padding-left: 120px\">&#8212;-&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"padding-left: 120px\">winmgmt {wscsvc, vmms, SUService, SharedAccess, LocationTaskManager, NcaSvc,<\/p>\n<p style=\"padding-left: 120px\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iphlpsvc, IAStorDataMgrSvc}<\/p>\n<p style=\"padding-left: 60px\"><strong>Note<\/strong>&nbsp; The value of&nbsp;<strong>$FormatEnumerationLimit<\/strong>&nbsp;exists only during the current session. To make the change persist through opening and closing the Windows PowerShell session, or even to survive a reboot, add the new value assignment to your&nbsp;<a href=\"http:\/\/social.technet.microsoft.com\/Search\/en-US?query=profile&amp;beta=0&amp;rn=Hey%2c+Scripting+Guy!+Blog&amp;rq=site:blogs.technet.com\/b\/heyscriptingguy\/&amp;ac=8\" target=\"_blank\">Windows PowerShell profile<\/a>.<\/p>\n<p style=\"padding-left: 60px\">&nbsp;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary:&nbsp;Change Windows PowerShell so that it will display more information by default. &nbsp;I pipe information and select certain properties, but the information in my table is truncated. Using Autosize or Wrap does not help. How can I change Windows PowerShell so that it displays the information contained in the property? &nbsp;You are running into&nbsp;$FormatEnumerationLimit. By [&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-4137","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:&nbsp;Change Windows PowerShell so that it will display more information by default. &nbsp;I pipe information and select certain properties, but the information in my table is truncated. Using Autosize or Wrap does not help. How can I change Windows PowerShell so that it displays the information contained in the property? &nbsp;You are running into&nbsp;$FormatEnumerationLimit. By [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/4137","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=4137"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/4137\/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=4137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=4137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=4137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}