PowerShell V2 Bug Introduced After Installing V3

As some of you may know, we are working on updating our products to support PowerShell V3 and have been running various tests to ensure our software functions correctly. During this testing process we stumbled upon a minor bug that was introduced into V2 after installing PowerShell V3 on Windows 7. As it turned out, this bug is also present on Windows 8 machines.

Our goal is to inform you about this issue, should ever encounter it while using our PowerShell products.

The following is a syntax error produced by a script using the V3 console. As you can see, the message displays the position of the syntax error:

PowerShell V3 Console


If you run the same script containing the syntax error in the V2 console (after installing v3), it no longer displays the position. Instead it has “<position>” as a place holder, but no actual information:

PowerShell V2 Console

The lack of position information can make it difficult to locate the syntax error without assistance. Hopefully the PowerShell Team will resolve this bug in a future build.