New-CIMSession denied in discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2021 01:33 PM
Hi Everyone,
We're trying to run discovery and we're beating our head against a wall on this error:
New-CimSession : Access is denied.At line:1 char:1+ New-CimSession -ComputerName $Host -SessionOption $so -Credential $Cr ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : PermissionDenied: (:) [New-CimSession], CimException+ FullyQualifiedErrorId : HRESULT 0x80070005,Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionCommand+ PSComputerName [ip address here]
We have tested the credentials manually remoted into our mid server and our CIm sessions work fine.
Our account has been granted server admin rights to the devices we're trying to discover.
I can run
remote WMI queries, like "wmic /node:10.10.10.10 bios get wmic /node:"1.1.1.1" win32_operatingsystem"
remote PowerShell commands, like "gwmi win32_computersystem -computername 1.1.1."
We've tried setting up another mid server just to see, and that is also giving the same error.
The credentials test just fine inside of servicenow.
Anyone run into this? I'll be happy with any suggestions to try!
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2021 11:09 AM
Hello Eric,
I have the exact same issue.
Did you find something?
I just get this KB :
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0564283
Didn't test all of those yet.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2021 02:25 PM
Hi Adil,
We did end up getting this to work; we also went through the steps in the article without any luck. What worked for us was to set the credential you want to use to 01. Our credential was already the highest number, but was still pulling a different one. After we set it to 01, it started to work.
Not sure if that will work for you guys, but worth a shot!