Forum Discussion

maxtester's avatar
maxtester
Contributor
4 years ago

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?

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    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).

     

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you for clarifications Alex!

      maxtester Did this reply help in the investigation?