<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025313#M94575</link>
    <description>&lt;P&gt;I have several windows servers on a subnet.&amp;nbsp; &amp;nbsp;All but one are Discovered properly.&amp;nbsp; One fails.&lt;/P&gt;
&lt;P&gt;from Discovery logs:&lt;/P&gt;
&lt;P&gt;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))&lt;/P&gt;
&lt;P&gt;also&lt;/P&gt;
&lt;P&gt;{"credential_type":"Windows","credential_name":"Windows","credential_order":"100","credential_success":false,"credential_id":"9e.....................b0ee"},&lt;/P&gt;
&lt;P&gt;And finally - A credential test on this server fails to connect.&lt;/P&gt;
&lt;P&gt;Has to be a credential issue, right?&amp;nbsp; Or possibly network connectivity?&lt;/P&gt;
&lt;P&gt;However -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windows admins are able to establish remote PowerShell connection from the MID server using the Windows credential in question and run simple commands&amp;nbsp;such as&amp;nbsp; &amp;gt;dir c:\&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't believe I have any options from the ServiceNow side to change any configuration or setting to address this. Suggestions on what could be the issue on the server side if the remote PowerShell from MID server is working?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 16:39:06 GMT</pubDate>
    <dc:creator>Bob D</dc:creator>
    <dc:date>2019-08-30T16:39:06Z</dc:date>
    <item>
      <title>Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025313#M94575</link>
      <description>&lt;P&gt;I have several windows servers on a subnet.&amp;nbsp; &amp;nbsp;All but one are Discovered properly.&amp;nbsp; One fails.&lt;/P&gt;
&lt;P&gt;from Discovery logs:&lt;/P&gt;
&lt;P&gt;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))&lt;/P&gt;
&lt;P&gt;also&lt;/P&gt;
&lt;P&gt;{"credential_type":"Windows","credential_name":"Windows","credential_order":"100","credential_success":false,"credential_id":"9e.....................b0ee"},&lt;/P&gt;
&lt;P&gt;And finally - A credential test on this server fails to connect.&lt;/P&gt;
&lt;P&gt;Has to be a credential issue, right?&amp;nbsp; Or possibly network connectivity?&lt;/P&gt;
&lt;P&gt;However -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windows admins are able to establish remote PowerShell connection from the MID server using the Windows credential in question and run simple commands&amp;nbsp;such as&amp;nbsp; &amp;gt;dir c:\&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't believe I have any options from the ServiceNow side to change any configuration or setting to address this. Suggestions on what could be the issue on the server side if the remote PowerShell from MID server is working?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:39:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025313#M94575</guid>
      <dc:creator>Bob D</dc:creator>
      <dc:date>2019-08-30T16:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025314#M94576</link>
      <description>&lt;P&gt;Are you able to run the PowerShell connection with the failing credential from the MID Server? Also, can you make a successful Remote Desktop Connection to the server using the same credential?&lt;/P&gt;
&lt;P&gt;If the credential is good, you should be able to do both.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:50:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025314#M94576</guid>
      <dc:creator>Ian Mildon</dc:creator>
      <dc:date>2019-08-30T16:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025315#M94577</link>
      <description>&lt;P&gt;As Ian mentioned, if you are able to validate the credential using RDP then you know you have a good credential. RDP uses port 3389 which is a different port than ServiceNow Discovery uses.&lt;/P&gt;
&lt;P&gt;Once you have a good credential, then I suggest you validate the ServiceNow Discovery WMI ports between the MID Server and the Remote Windows host are open (in the Windows Firewall and/or any firewall between the MID Server and the Windows host). ServiceNow Discovery uses WMI for discovery, therefore port 135 from the MID Server to the Remote Windows host must be open for initial communication AND high ports 49152 - 65535 must be open for the remainder of the communication. Even though this is a large range of open ports, only a portion of this range are dynamically allocated.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 16:54:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025315#M94577</guid>
      <dc:creator>chuckm</dc:creator>
      <dc:date>2019-08-30T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025316#M94578</link>
      <description>&lt;P&gt;Thanks guys -&lt;/P&gt;
&lt;P&gt;Yes - Windows admins are able to establish remote PowerShell connection from the MID server using the Windows credential in question and run simple commands&amp;nbsp;such as&amp;nbsp; &amp;gt;dir c:\&lt;/P&gt;
&lt;P&gt;Have not tried RDP...but would that tell me anything given the above connection is successful?&lt;/P&gt;
&lt;P&gt;That's what makes this puzzling.&amp;nbsp; What else is required if this test already works?&lt;/P&gt;
&lt;P&gt;Port 135 is open, that's the only reason it's attempting the windows credential loging in the first place (for Windows Classify probe)&lt;/P&gt;
&lt;P&gt;Port 5985 is open but 5986 is not (according to Shazaam input)&lt;/P&gt;
&lt;P&gt;I'll check the high ports&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 18:42:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025316#M94578</guid>
      <dc:creator>Bob D</dc:creator>
      <dc:date>2019-08-30T18:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025317#M94579</link>
      <description>&lt;P&gt;If the Windows Admins are running the PowerShell with their credentials/logins, then it would work, even if the&amp;nbsp;Credential entry for Windows fails. A lot comes down to the actual PowerShell script/commands they are sending&amp;nbsp;and how the session is being established&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 18:49:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025317#M94579</guid>
      <dc:creator>Ian Mildon</dc:creator>
      <dc:date>2019-08-30T18:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025318#M94580</link>
      <description>&lt;P&gt;The error message "...0x80070005 (E_ACCESSDENIED)" typically can be one of 2 things: 1) a bad credential or 2) a blocked port(s). If you resolve #1 and #2, then most of the time discovery will be successful.&lt;/P&gt;
&lt;P&gt;For the error message you are getting, I always troubleshoot 2 steps specifically in the following order:&lt;/P&gt;
&lt;P&gt;Step 1 (Validate Credential using RDP)&lt;BR /&gt;Both remote PowerShell and RDP are both valid methods to test the credential. I always test credentials using RDP, but other community members have mentioned using remote PowerShell for testing credentials as well.&lt;/P&gt;
&lt;P&gt;Step 2 (Check WMI port 135 and port ranges 49152 - 65535 are open)&lt;BR /&gt;Check the high ports - the Windows firewall might be blocking them. Discovery uses WMI which initiates on port 135 and the remaining communication occurs on high ports (49152 - 65535) for a successful discovery.&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/101867i4456E582A9E21FB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I suggest completing steps 1 and 2 before moving on to other troubleshooting.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 20:44:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025318#M94580</guid>
      <dc:creator>chuckm</dc:creator>
      <dc:date>2019-08-30T20:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025319#M94581</link>
      <description>&lt;P&gt;Have you confirmed if the credential you have for Discovery &lt;STRONG&gt;has local admin rights on the device&lt;/STRONG&gt; to be discovered?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, another thing we did here was setup the MID Server service to logon with the credential the MID server will use on other devices.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 21:00:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025319#M94581</guid>
      <dc:creator>Luiz Lucena</dc:creator>
      <dc:date>2019-08-30T21:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025320#M94582</link>
      <description>&lt;P&gt;Is your credential record in the form of domain\user?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 22:59:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025320#M94582</guid>
      <dc:creator>doug_schulze</dc:creator>
      <dc:date>2019-08-30T22:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025321#M94583</link>
      <description>&lt;P&gt;Thanks Chuck.&amp;nbsp; &amp;nbsp; The Credential Test from within ServiceNow fails.&amp;nbsp; But remote PowerShell execution directly from the MID server is successful (using the same credential, of course).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've asked the server admin to check the high ports...but wouldn't the remote PowerShell connection from MID fail if that's the issue?&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp; question about your port diagram.&amp;nbsp; Is the remote management port 5985/5986 not used?&amp;nbsp; I thought it was.&lt;/P&gt;
&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 14:35:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025321#M94583</guid>
      <dc:creator>Bob D</dc:creator>
      <dc:date>2019-09-10T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025322#M94584</link>
      <description>&lt;P&gt;This error occurs if the server administrator does not have permissions to the local security policy on Microsoft Windows 2008 server.&lt;BR /&gt;1.You can verify the Local Security Policy on failing server.&lt;BR /&gt;2.The user does not have remote access to the computer through DCOM. &lt;BR /&gt;Typically, DCOM errors occur when connecting to a remote computer with a different operating system version.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:20:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025322#M94584</guid>
      <dc:creator>Shekhar Deshin1</dc:creator>
      <dc:date>2019-09-10T15:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025323#M94585</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; That's what makes this frustrating.&amp;nbsp; Several other windows servers on the same subnet are discovered OK with this same credential.&amp;nbsp; I don't want to change anything with my ServiceNow or network config because it's working.&amp;nbsp; To me - all evidence points to something on the server itself that is preventing a successful Discovery.&lt;/P&gt;
&lt;P&gt;thank you, as always, Doug for your willingness to jump in&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 18:50:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025323#M94585</guid>
      <dc:creator>Bob D</dc:creator>
      <dc:date>2019-09-11T18:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025324#M94586</link>
      <description>&lt;P&gt;Hi Bob D&lt;/P&gt;
&lt;P&gt;It could very well be caused by WMI/RPC/firewall rules. The best source I could come up with in snap is this article from HI&lt;/P&gt;
&lt;P&gt;"Resolving issue of RPC Server unavailable during Windows Server discovery in Service Mapping"&lt;BR /&gt;&lt;A href="https://hi.service-now.com/kb_view.do?sysparm_article=KB0564282" rel="nofollow"&gt;https://hi.service-now.com/kb_view.do?sysparm_article=KB0564282&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards Brian&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:15:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025324#M94586</guid>
      <dc:creator>Brian Nielsen</dc:creator>
      <dc:date>2019-09-11T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Discovery on windows server fails, credential test fails, but remote PowerShell from MID server works</title>
      <link>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025325#M94587</link>
      <description>&lt;P&gt;The reason why I don't use the Credential Test from within ServiceNow is that a failure does not indicate if it is a credential issue or port issue. Using RPC to test the credential from the MID Server can quickly determine if I have a valid credential - then I can move on to checking the ports.&lt;/P&gt;
&lt;P&gt;I am not sure if the remote PowerShell uses high ports. RPC does use port 3389 and not the high ports.&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/101865iB8FA7BEB1A8D1F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 02:04:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/discovery-on-windows-server-fails-credential-test-fails-but/m-p/1025325#M94587</guid>
      <dc:creator>chuckm</dc:creator>
      <dc:date>2019-09-12T02:04:50Z</dc:date>
    </item>
  </channel>
</rss>

