Hello! I’m trying to use the ‘-ErrorVariable’ to populate a variable with a ton of errors, and then use those errors as a source for other commands (parsed and then fed into a command). The command I’m trying to run is:
Invoke-Expression "p4 -u $p4user -p $sbport verify -q -z //SandboxView/...#=head" -ErrorVariable MissedTransfers
The question I have: Is there a limited size of content that this variable will store? I know that the built in variable in powershell $error will only store something like 500 lines of error before over-writing. I need my “$MissedTransfers” variable to be limitless. I can’t seem to find any information online about this.