You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$PSVersionTable.PSVersion.ToString() and $PSVersionTable still works.
The error can be reproduced on master branch.
Steps to reproduce
$PSVersionTable.PSVersionout-lineoutput : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
+ CategoryInfo : NotSpecified: (:) [out-lineoutput], ArgumentOutOfRangeException
+ FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand
>$PSVersionTable
Name Value
---------
PSVersion 6.0.1
PSEdition Core
GitCommitId v6.0.1-290-g942832c13a3c325851e9873bd25036775c85a18c
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
changed the title [-]star$PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand[/-][+]$PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand[/+]on Mar 23, 2018
Activity
[-]star$PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand[/-][+]$PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand[/+]MaximoTrinidad commentedon Mar 23, 2018
Hum! So, this is for the future release of PSCore 6.1.0. Right!
It's find on 6.0.1: Win 10, Win 10 Bash, and Ubuntu.
:)
SteveL-MSFT commentedon Mar 24, 2018
This was found during 6.1.0-Preview1 release. I know the issue, just working on some tests.
stknohg commentedon Mar 24, 2018
Workaround :
use Format-Table -AutoSize
use other formatting