Hi,
I get the following error when executing code in 32bit process :
Cannot process the XML from the 'Output' stream of 'C:\WINDOWS\syswow64\WindowsPowerShell\v1.0\powershell.exe': Data
at the root level is invalid. Line 1, position 1.
I’m creating an alias like this:
Set-Alias Start-PowerShell32 "C:\WINDOWS\syswow64\WindowsPowerShell\v1.0\powershell.exe"
Later in the script doing some filtering and executing other power-shell scripts. If it is a scripts called ‘SomeScript’ in this example, I want to execute it in 32bit process.
$testsPath = Resolve-Path .\somePath Get-ChildItem -Path "$testsPath\*" -Filter *.ps1| Foreach-Object{ LogInfo("Run test file: $_") $scriptname = $_.name if($scriptname -eq "SomeScript.ps1") { Start-PowerShell32 { $someTestScript= Resolve-Path .\deployment\SomeScript.ps1 Write-Host("Entering the 32bit process ..") $testResult = . $someTestScript } }
The script is running okay in 32bit process but before that I get the error mentioned above :
Cannot process the XML from the 'Output' stream of 'C:\WINDOWS\syswow64\WindowsPowerShell\v1.0\powershell.exe':
Data at the root level is invalid. Line 1, position 1.
After this error, script runs just fine. Do you have an idea what is the problem and where?
Thanks