32 bit Mode Powershell

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
User avatar
Posts: 22
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Sun Mar 03, 2013 12:33 pm

32 bit Mode Powershell

Post by C3PO_R2D2 »

Hi, I notice the following:
With Powershell Studio, you can run your scripts in 32 bit mode. Normally, this is seldom needed, however, I have some scripts that connect to a Notes object, which can only be loaded whilst in 32 bit mode.
This works well if you run the script or if you debug the script.
However, when you run the script in console -> Run (Selection) In Console, then a 64 bit Powershell window is opened, not a 32 bit version.
Can this be adapted in a future version?
32bit.png (11.61 KiB) Viewed 3193 times
RunInConsole.png (10.74 KiB) Viewed 3192 times

User avatar
Alexander Riedel
Posts: 7377
Joined: Tue May 29, 2007 4:43 pm

Re: 32 bit Mode Powershell

Post by Alexander Riedel »

Just put this comment in your script:
# %ForceShell%=PowerShell 32 bit
Alexander Riedel
SAPIEN Technologies, Inc.