Ask a Question

Start of powershell on 64bit (windows server 2016) environment leads to an error


Start of powershell on 64bit (windows server 2016) environment leads to an error



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?

Community Hero



a) What is the bitness of your operating system?

b) What is the bitness of TestComplete you are using? (<TestComplete>\Bin\ folder contains 32-bit flavor of TestComplete while <TestComplete>\x64\Bin\ folder contains 64-bit flavor of it)

c) System32 folder on 64-bit system contains 64-bit applications, while SysWOW64 folder contains 32-bit flavors of the same applications).


  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
SmartBear Alumni (Retired)

Thank you for clarifications Alex!

@maxtester Did this reply help in the investigation?

Sonya Mihaljova
Community and Education Specialist

Showing results for 
Search instead for 
Did you mean: