pdxcat / PrepDeploy

PowerShell script that removes a computer object from AD and maybe SCCM to prep it for redeployment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script should launch SCCM cmdlets in 32-bit shell

pfaffle opened this issue · comments

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.