SCCM Credential TroubleshootingIssue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> When running SCCM related Orchestration activities, the below error might be received: Authentication failure with the local MID server service credential. Troubleshooting The first step is to open the input ECC that has error: "Authentication failure with the local MID server service credential." Then open the output ECC, in the payload, it should have something similar to: <parameter name="MIDScriptFile" value="scripts\PowerShell\SCCM\GetApplications.ps1"/> Change this tag to <parameter name="script.ps1" value="ls"/> Then run the ECC again (set state to ready, clear processed field and sequence field, insert and stay). It should fail with the same error: Authentication failure with the local MID server service credential. This indicates the failure occurs at "test credential" step before the actual script runs. The issue is usually caused by PSDrive CMSite not available on Target SCCM Server. To fix this, use the SCCM credential to log into the SCCM Server and connect via Windows PowerShell from the System Center Configuration Manager console. Once this is done, the PSDrive is created for the credential after the ConfigurationManager module is loaded. This requirement is documented in below product doc: Create Windows credentials for SCCM deployments To confirm this, or to find out what exactly is happening, below steps can be used: (Note: the testing scripts are created from MID Server script: credentials.psm1, under function testCredentialSCCM ) On MID Server host, run below PowerShell commands: $computer = "FQDN of the target SCCM Server"; $cred = get-credential; #put in the Windows Credential $session = New-PSSession -computername $computer -configurationName Microsoft.PowerShell32 -Credential $cred; invoke-command -session $session -scriptblock {import-module -name "$(split-path $env:SMS_ADMIN_UI_PATH)\ConfigurationManager.psd1";get-module}; The above command confirms the module is loaded. It should show the module with name "ConfigurationManager". Sample result: The module above loads PSDrive with provider CMSite. Now let's confirm the drive is mapped by following command: invoke-command -session $session -scriptblock {import-module -name "$(split-path $env:SMS_ADMIN_UI_PATH)\ConfigurationManager.psd1";get-psdrive -psprovider CMSite}; Sample result: If the output is empty, or says drive with CMSite provider not available, it means the drive hasn't been created. Follow Create Windows credentials for SCCM deployments to do below: Use the credential to log into the SCCM Server and connect via Windows PowerShell from the System Center Configuration Manager console at least once to set the path variable for that credential. ReleaseKingston, London, MadridRelated LinksPlease also review the below KB: KB0831952