Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
SCCM Credential Troubleshooting - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • SCCM Credential Troubleshooting
KB0714611

SCCM Credential Troubleshooting


6026 Views Last updated : Jul 22, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

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.

Release

Kingston, London, Madrid

Related Links

Please also review the below KB:

KB0831952


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.