Script should launch SCCM cmdlets in 32-bit shell
pfaffle opened this issue · comments
Craig Meinschein commented
If run in a 64-bit shell, the call to Import-Module will fail because the ConfigMgr module requires that the shell be 32-bit. A later call to Clear-CMPxeDeployment will likewise fail.
The script should detect if it is being launched in 64-bit PowerShell, so that it can launch at least the SCCM-related cmdlets in 32-bit PowerShell instead.