Wednesday, June 28, 2017

PowerShell Tip - How to Avoid Truncating Data

Sometimes, PowerShell will truncate your command output:


Uggh... how annoying. Why do you hide things from me, PowerShell?

Thankfully, this is easy to correct. There is an environment variable in PowerShell for 'EnumerationLimit' (i.e. the number of items enumerated to the screen during a session):



Setting this variable to -1 essentially allows for unlimited enumeration.


I hope you find this helpful.

No comments:

Post a Comment