Powershell architecture (bitness) considerations

Version 1

    Verified Product Versions

    AppSense Environment Manager 8.2AppSense Environment Manager 8.3

    Introduction

    When running a powershell script in a 64 bit environment from Environment Manager as a child action of a process start of a 32 bit application the script fails to run as expected.

    Detail

    Powershell does not run under the default architecture of the operating system, it runs under the architecture the parent application is running in.

    Therefore, if the starting application is 32 bit, the powershell script is run in a 32 bit powershell.

    As a workaround you can call a 64 bit dummy.exe as a child of the original 32 bit application and then have the powershell run as a child of that dummy.exe file.