Failed Exploring CI Pattern, Pattern.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2019 03:15 AM
Failed Exploring CI Pattern, Pattern name: Windows OS - Desktops, To Check Pattern Log Press Here
Getting this error while doing discovery.
Below is file attached

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2019 04:51 AM
I think you may be lacking permissions on your Credential.
According to the docs website:
https://docs.servicenow.com/bundle/newyork-it-operations-management/page/product/discovery/reference/r_DataCollDiscoWindowsComputers.html
It says:
The credential that you configure must have the following:
- Access to the WMI service to the current namespace and sub-namespaces.
I see this error:
2019-11-09 16:12:21: Executing WMI query on host 000.00.00.0 query: SELECT Name,Status,Description,Caption FROM MSCluster_Cluster
2019-11-09 16:12:21: WMI query on host 000.00.00.0 failed. query: SELECT Name,Status,Description,Caption FROM MSCluster_Cluster error: Invalid namespace
And I also see these errors:
set assigned to info
2019-11-09 16:12:23: Running local command: powershell "Get-WmiObject -Class win32_computersystem -Property UserName -ComputerName 000.00.00.0 "
2019-11-09 16:13:43: Command stderr: Get-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESS
DENIED))
At line:1 char:14
+ Get-WmiObject <<<< -Class win32_computersystem -Property UserName -ComputerN
ame 000.00.00.0
+ CategoryInfo : NotSpecified: (:) [Get-WmiObject], UnauthorizedA
ccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
erShell.Commands.GetWmiObjectCommand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2019 11:42 AM
Hi,
Get-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESS
DENIED))
Means Powershell is not getting executed on target device. It has to do with Credentials, Firewall setting.
Make sure you have stored credentials with domain in username i.e. domain\username.
Check this links:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0535240
https://hi.service-now.com/kb_view.do?sysparm_article=KB0564283
Thanks,
Ashutosh