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.
Windows discovery and test credential fail with Authorization error - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Windows discovery and test credential fail with Authorization error
KB0750860

Windows discovery and test credential fail with Authorization error


1874 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms

1. When testing credentials it fails with Authorization error and throws the following in the mid logs related to credentials.psm1

05/31/19 10:07:56 (873) PowerConsole-923fbfb0db7dbf00c1b6e05c8a96195d>stderr DEBUG: STDERR: At D:\SOW\Installation files\New Dev Mid Server\agent\scripts\Powershell\WinRMAPI\Credentials\Credentials.psm1:70 char:16
 
05/31/19 10:07:56 (873) PowerConsole-923fbfb0db7dbf00c1b6e05c8a96195d>stderr DEBUG: STDERR: + ... $results = gwmi win32_operatingsystem -computer $computer -credentia ...
 
05/31/19 10:07:56 (873) PowerConsole-923fbfb0db7dbf00c1b6e05c8a96195d>stderr DEBUG: STDERR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
05/31/19 10:07:56 (873) PowerConsole-923fbfb0db7dbf00c1b6e05c8a96195d>stderr DEBUG: STDERR: + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
 
05/31/19 10:07:56 (873) PowerConsole-923fbfb0db7dbf00c1b6e05c8a96195d>stderr DEBUG: STDERR: + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand&#13 

2. Testing the same credentials from the mid server using GWMI will be successful

Release

All releases

Cause

  1. This can be caused if there is a customization in regards to Credentials.psm1 file. Customizing this file can cause issues with passing parameters to the credentials.psm1 powershell script.
  2. These Credential.psm1 power-shell scripts are responsbile for testing the credentials and also while running discovery.

Resolution

Make sure both credential.Psm1 files are out of the box so that right parameters are passed to the script.


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.