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.
This topic is 5 years and 1 month 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.
Locked
User avatar
C3PO_R2D2
Posts: 22
Last visit: Thu Jul 29, 2021 3:55 am

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
32bit.png (11.61 KiB) Viewed 4629 times
RunInConsole.png
RunInConsole.png (10.74 KiB) Viewed 4628 times
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

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.
This topic is 5 years and 1 month 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.
Locked