ActiveXPosh and 64bit

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
This topic is 13 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
anupamagarwal
Posts: 8
Last visit: Wed May 05, 2010 1:50 am

ActiveXPosh and 64bit

Post by anupamagarwal »

I figured out the answer.

The regasm.exe is located in the folder C:WINDOWSmicrosoft.netFramework64v2.0.50727. This I believe is the 64 bit version which should be used here. This needs to be run for ActiveXPoSH.dll file located in C:Program Files (x86)SAPIEN Technologies, IncActiveXPosh folder. The script still failed to execute with an error that the specified file cannot be found. I copied ActiveXPoSH.dll file to C:WindowsSystem32 folder and that did the trick. The scripts is working fine now.
User avatar
cashi01
Posts: 1
Last visit: Wed Jun 02, 2010 6:01 am

ActiveXPosh and 64bit

Post by cashi01 »

Hi,

now i´m completely confused :-) Could be of my bad english...
So can anyone exactly describe waht i have to to ?
I have to run Exchange2007 x64 Powershell commands out of an 32bit cscript vbs on a w2k8 x64. I run the cscript from syswow64....
What do I have to do to get this running ?
Thx in advance...
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

ActiveXPosh and 64bit

Post by Alexander Riedel »

You cannot cross the 32/64 bit divide from within one process.
If you have to run powershell 64 bit commands you must run them from
a 64 bit process.

You can either run
- a 64 bit VBScript using ActiveXPosh
- run a 64 bit PowerShell script directly
- encapsulate your Powershell commands in a 64bit script package
with PrimalScript 2009 and run it as an external process

Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 13 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.