maxtester
4 years agoContributor
Start of powershell on 64bit (windows server 2016) environment leads to an error
Hi,
I have a problem with starting of powershell out of my script. I need to start a powerhell script out of a function:
var obj_Shell = Sys.OleObject("WScript.Shell")
obj_Shell.Run("C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit")
The shell starts with the following error: You are running PowerShell in 32bit console. This may lead to compatibility issues! please use only 64bit PowerShell console!
If I use "obj_Shell.Run("C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit")" I get the same error. I don't understand the problem.
I use TC 12.60
Can anybody help?