{"id":49,"date":"2013-02-21T14:54:00","date_gmt":"2013-02-21T14:54:00","guid":{"rendered":"\/post\/2013\/02\/21\/How-to-expand-enumerated-lists-in-Powershell-FT.aspx"},"modified":"2013-02-21T14:54:00","modified_gmt":"2013-02-21T14:54:00","slug":"how-to-expand-enumerated-lists-in-powershell-ft","status":"publish","type":"post","link":"https:\/\/www.vatland.no\/index.php\/how-to-expand-enumerated-lists-in-powershell-ft\/","title":{"rendered":"How to expand enumerated lists in Powershell FT."},"content":{"rendered":"<p>Have you ever seen {12,1234,34,124&#8230;} in PowerShell, and wondered &#8220;how do I get it to display the rest&#8221;?<\/p>\n<p>The builtin variable $FormatEnumerationLimit determines how many fields to display, default value is 4.<\/p>\n<p>To change :<\/p>\n<p>&nbsp;$FormatEnumerationLimit=15<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever seen {12,1234,34,124&#8230;} in PowerShell, and wondered &#8220;how do I get it to display the rest&#8221;? The builtin variable $FormatEnumerationLimit determines how many fields to display, default value is 4. To change : &nbsp;$FormatEnumerationLimit=15 &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":911,"url":"https:\/\/www.vatland.no\/index.php\/use-powershell-to-get-external-ip-address\/","url_meta":{"origin":49,"position":0},"title":"Use powershell to get external IP address","author":"Atle","date":"September 23, 2019","format":false,"excerpt":"How can you get your external IP address from powershell? I use a simple script to query an external public web service. The service I'm using is hosted by ipinfo.io . I have created a small function that is placed in my powershell library. All my modules are loaded by\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/www.vatland.no\/index.php\/category\/development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":968,"url":"https:\/\/www.vatland.no\/index.php\/powershell-2-0-json-to-hash\/","url_meta":{"origin":49,"position":1},"title":"Powershell 2.0 Json to Hash","author":"Atle","date":"November 11, 2020","format":false,"excerpt":"Resonse from webrequests are normally in Json format and converting back and forth is no problem using convertto\/from-json. Only this time some computers did run Powershell 2.0 and did not have any \"new\" .NET framework installed. So I ran to a halt at this Json converting. Since my data did\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/www.vatland.no\/index.php\/category\/development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":957,"url":"https:\/\/www.vatland.no\/index.php\/hash-tables-in-powershell\/","url_meta":{"origin":49,"position":2},"title":"Hash tables in powershell","author":"Atle","date":"March 23, 2020","format":false,"excerpt":"We all have the need to store data in some kind of arrays. I use hashtables a lot. Preferred use is as a lookup table, I can use 'contains' instead of looping through each item or reference an object by name instead of index number. Lookup table for licenses is\u2026","rel":"","context":"In &quot;CSP&quot;","block_context":{"text":"CSP","link":"https:\/\/www.vatland.no\/index.php\/category\/csp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":899,"url":"https:\/\/www.vatland.no\/index.php\/csp-access-to-tenants-using-powershell-part-2\/","url_meta":{"origin":49,"position":3},"title":"CSP access to tenants using powershell. Part 2","author":"Atle","date":"September 20, 2019","format":false,"excerpt":"In part 1 we created the Azure Enterprise App for Partnercenter and used this information to connect using powershell and connect-partnercenter. Now we will use this to connect to one of our customers tenants. First we will use AZ module and connect-azaccount. We will use the AZ module and the\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/www.vatland.no\/index.php\/category\/azure\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70,"url":"https:\/\/www.vatland.no\/index.php\/exchange-powershell-max-quota-exceeded\/","url_meta":{"origin":49,"position":4},"title":"Exchange Powershell Max Quota exceeded.","author":"Atle","date":"May 27, 2012","format":false,"excerpt":"When doing some exchange powershell you would probably get this error or somthing like it sooner or later: Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. This user is allowed a maximum number of 18 concurrent shells, which has been\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/www.vatland.no\/index.php\/category\/exchange\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":835,"url":"https:\/\/www.vatland.no\/index.php\/powershell-to-get-directaccess-connection-history\/","url_meta":{"origin":49,"position":5},"title":"Powershell to get DirectAccess connection history.","author":"Atle","date":"November 9, 2018","format":false,"excerpt":"This is a simple powershell to get data from the DirectAccess database. It reguired some serious Bing'ing (and google) to get the time field. You will have to configure reporting database in DirectAccess config. I used windows internal database. $server=\"\\\\.\\pipe\\MICROSOFT##WID\\tsql\\query\" $database=\"RaAcctDb\" #$table=\"connectiontable\" $table=\"sessiontable\" #$table=\"endpointsaccessedtable\" #$table=\"serverendpointtable\" $cs=\"server=$server;database=$database;Integrated Security=True;\" $connection=New-Object System.Data.SqlClient.SqlConnection $connection.ConnectionString=$cs\u2026","rel":"","context":"In \"DirectAccess\"","block_context":{"text":"DirectAccess","link":"https:\/\/www.vatland.no\/index.php\/tag\/directaccess\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":0,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}