How to run Powershell scripts with a Service Account to access ConfigMgr 2012 SP1

When using a service account to run for instance my “cleaning ConfigMgr” Powershell script you may run in to an error. When trying to access the Windows PowerShell drive that is mapped to your Primary Site you will receive the following error: “set-location : Cannot find drive. A drive with the name <primary site> does not exist.” (see figure on the left) I see the same behavior when for instance running a Powershell script from System Center Orchestrator 2012 to change settings in Configuration Manager 2012 SP1.

Read the complete blog here: http://configmgrblog.com/2013/05/02/how-to-run-powershell-scripts-with-a-service-account-to-access-configmgr-2012-sp1/

email

Written by , Posted .