Call a PowerShell script from SCCM on a 64-bit machine in Bypass mode

SCCM 2012 is a 32bit client, to run a PowerShell script on a 64bit machine in 64bit processing mode you have to call the powershell.exe with full path.

%winDir%\Sysnative\windowsPowershell\v1.0\Powershell.exe -ExecutionPolicy Bypass -File .\script.ps1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s