Failed to access target system. Please check credentials and firewall settings on the target system to ensure accessibility: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

avishek21
Kilo Explorer

Getting error "

Failed to access target system. Please check credentials and firewall settings on the target system to ensure accessibility: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

while discovering the Windows PCs. Need help.Tried

To check this, run the following command from the command prompt on the MIS Server host.Execute for runner_type=WMI:

wmic /node:"<target>" /user:"<user>" /password:"<password>" path win32_operatingsystem

From within a Powershell console on the mid server host, execute for runner_type=Powershell:

gwmi win32_operatingsystem -computer <ip> -credential '<username>'

On running the command getting error "Access is denied".

I tried to use the username and password of the Mid Server in the first and second both command.

Need help.

2 REPLIES 2

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

sai3072
Mega Contributor

Check target machine has a WMI connection or not   through wbemtest (defaultly   available in windows )from u r machine.If it is connection   ok then this problem will be eliminated.