Elastigroup shutdown scripts usually run in 64‑bit PowerShell on Windows instances. If part of your script requires 32‑bit execution, for example when calling cmdlets or components that only support 32‑bit mode, you can launch a 32‑bit PowerShell session from your shutdown script.
This article shows you how to set up the alias and run 32‑bit code as part of your Elastigroup shutdown workflow.
-
Add an alias in the shutdown script that points to the 64‑bit PowerShell executable capable of invoking 32‑bit mode.
Set-Alias Start-PowerShell64 "$env:windir\sysnative\WindowsPowerShell\v1.0\powershell.exe" -
Use the alias to run any command or script block that must execute in 32‑bit mode.
Start-PowerShell64 <command-here> -
If you need to stop an IIS application pool during shutdown, your script may look like this example:
<powershell> Start-Transcript -Path C:\Temp\shutdown_script.log -append New-Item D:\Logs\shutdown_started.txt Set-Content D:\Logs\shutdown_started.txt 'shutdown-script is running - running webpool Stop' Set-Alias Start-PowerShell64 "$env:windir\sysnative\WindowsPowerShell\v1.0\powershell.exe" Start-PowerShell64 {Stop-WebAppPool -Name *} Stop-Transcript Start-Sleep -s 300
After you add the alias and call your commands through it, any functions or modules that need 32‑bit PowerShell will run correctly as part of the Elastigroup shutdown process.
Related Articles
64bit Powershell Scripts not running 7Number of Views Audit TLS configuration, cipher suites, and connectivity in Snow Inventory Server environments 94Number of Views FlexNet agent (ndtrack) may trigger a security software warning due to PowerShell script execution containing unusual char… 78Number of Views Snow Inventory Agent: How to verify the authenticity of Snow Powershell scripts 17Number of Views Prevent regular VMs when using spot toleration injection with shutdown hours 7Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago