cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Contributor

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 2
Highlighted
Community Hero

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

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

 

Regards,
  /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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Community Manager

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

Thank you for clarifications Alex!

@maxtester Did this reply help in the investigation?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors