The CreatorCon Call for Content is officially open! Get started here.

New-CIMSession denied in discovery

IT Eric
Tera Contributor

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! 

2 REPLIES 2

Adil ELACHIQI1
Tera Contributor

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.

 

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!