17
3
PowerShell displays environment variables, one line for each. If a variable has a long enough value, it is truncated, and appended an ellipsis:
> gci env:
Name Value
---- -----
<suppressed lines>
PSModulePath C:\Windows\system32\WindowsPowerSh...
<suppressed lines>
Is there any way of obtaining full values for all vars at once, as in a standard cmd prompt? (the answers given for Powershell get-childitem env:path returns ellipsed one line, how to have something useful? would not apply, then).
I've spent an hour on searching for ways to get PowerShell to display the complete content of my path environment variable. It always truncates it to 2452 characters, with or without ellipsis marks, even if I specify wider formatting. This makes it impossible to treat PS as anything other than trivially useful. My opinion of PS is that it's a POS and nothing has changed that. I've read through hundreds of blogs and search results and nobody has a solution. Not even here. – Suncat2000 – 2017-06-21T13:11:39.137