<?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>topic RedFish - HPERedFishCMdlets - Error when connecting in Servers - General</title>
    <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157228#M16199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i try to use the HPERedFishCMdlets for PowerShell (v7.2) on a Windows 2012 R2 System, but i got the following error when i try to connect to an HPE Proliant DL380 Gen10 Server (ILO 5):&lt;/P&gt;&lt;P&gt;$cred = Import-Clixml -Path "[path to credentials.xml]"&lt;BR /&gt;Connect-HPERedfish -Address [ip-address] -Credential $cred -DisableCertificateAuthentication&lt;/P&gt;&lt;P&gt;Error: InvalidOperation: The property 'Expect100Continue' cannot be found on this object. Verify that the property exists and can be set.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Johannes&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 08:31:43 GMT</pubDate>
    <dc:creator>Johannes219</dc:creator>
    <dc:date>2022-01-04T08:31:43Z</dc:date>
    <item>
      <title>RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157228#M16199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i try to use the HPERedFishCMdlets for PowerShell (v7.2) on a Windows 2012 R2 System, but i got the following error when i try to connect to an HPE Proliant DL380 Gen10 Server (ILO 5):&lt;/P&gt;&lt;P&gt;$cred = Import-Clixml -Path "[path to credentials.xml]"&lt;BR /&gt;Connect-HPERedfish -Address [ip-address] -Credential $cred -DisableCertificateAuthentication&lt;/P&gt;&lt;P&gt;Error: InvalidOperation: The property 'Expect100Continue' cannot be found on this object. Verify that the property exists and can be set.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 08:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157228#M16199</guid>
      <dc:creator>Johannes219</dc:creator>
      <dc:date>2022-01-04T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157271#M16203</link>
      <description>&lt;P&gt;Small Update - i have found out, that the connect-hpeRedFish Command works correctly on the windows integrated PowerShell 5.1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ps5.png" style="width: 840px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/127601i0F79AAB229292A6F/image-size/large?v=v2&amp;amp;px=2000" role="button" title="ps5.png" alt="ps5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately i haven't found out the difference to PowerShell 7.2 until yet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ps7-error.png" style="width: 1309px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/127603iAD3B295051AD26CE/image-size/large?v=v2&amp;amp;px=2000" role="button" title="ps7-error.png" alt="ps7-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, i have one difference. The System has Internet Connection over an authenticating proxy. Although i tried to removing any customized proxy settings, in contrast to PowerShell 5.1, PowerShell 7 starts every new session with an definied proxy. So i must set "[system.net.webrequest]::DefaultWebProxy = new-object system.net.webproxy($null)" to remove the proxy settings. I have checked out every settings, but i haven't found out, where PowerShell is getting the proxy settings, Neither PowerShell Profile, Internet Proxy Settings, nor&amp;nbsp; envirenonment variables like http_proxy or https_proxy are set.&amp;nbsp;Policy Settings are excluded- this proxy is not distributed over the system policies.&lt;/P&gt;&lt;P&gt;I don't know if this could affect the&amp;nbsp;&lt;SPAN&gt;Expect100Continue Problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Johannes&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Dec 2021 09:30:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157271#M16203</guid>
      <dc:creator>Johannes219</dc:creator>
      <dc:date>2021-12-26T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157379#M16211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is there no one who can help here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 12:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157379#M16211</guid>
      <dc:creator>Johannes219</dc:creator>
      <dc:date>2021-12-30T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157549#M16232</link>
      <description>&lt;P&gt;Hello&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2053993"&gt;@Johannes219&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As there is no response to the query yet, I would recommend to directly contact technical support and log a support call for quicker resolution. Please refer the links below for support ticket options:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.hpe.com/help/en/Content/supportAndOtherResources.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.hpe.com/help/en/Content/supportAndOtherResources.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.hpe.com/psnow/doc/A00039121ENW" target="_blank" rel="noopener noreferrer"&gt;https://www.hpe.com/psnow/doc/A00039121ENW&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 08:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157549#M16232</guid>
      <dc:creator>Parvez_Admin</dc:creator>
      <dc:date>2022-01-04T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157578#M16233</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i simply have deactivated the Expect100Continue now:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$httpWebRequest.ServicePoint.Expect100Continue = $false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i try to connect i become to followed error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exception: Exception calling "GetResponse" with "0" argument(s): "The SSL connection could not be established, see inner exception."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With "$Errors[0].Exception.InnerException | FL *" i get the followed error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;InvalidOperation: Cannot index into a null array.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found some solutions on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://stackoverflow.com/questions/34331206/ignore-ssl-warning-with-powershell-downloadstring" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/34331206/ignore-ssl-warning-with-powershell-downloadstring&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to set ServerCertificateValidationCallback to $true, but it did not help:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, to get the line of this error, i have copied the CMDLet Functions in own script and renamed the function "Connect-HPERedfish2"&lt;BR /&gt;The Result of this Error is on Line 1723:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[System.Net.WebResponse] $resp = $httpWebRequest.GetResponse()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All commands to create variable $httpsWebRequest before the Line 1723 are listed below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$wr = [System.Net.WebRequest]::Create($Uri)
$httpWebRequest = [System.Net.HttpWebRequest]$wr
$httpWebRequest.Method = $Method
$httpWebRequest.AutomaticDecompression = [System.Net.DecompressionMethods]::GZip
$httpWebRequest.Headers.Add('Odata-version','4.0')
$httpWebRequest.ServicePoint.Expect100Continue = $false
$httpWebRequest.Headers.Add('X-Auth-Token',$Session.'X-Auth-Token'
$httpWebRequest.ServerCertificateValidationCallback = {$true}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The $session variable is definied as followed:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$session = New-Object PSObject
$session|Add-Member -MemberType NoteProperty 'RootUri' $rootUri
$session|Add-Member -MemberType NoteProperty 'X-Auth-Token' $webResponse.Headers['X-Auth-Token']
$session|Add-Member -MemberType NoteProperty 'Location' $webResponse.Headers['Location']
$session|Add-Member -MemberType NoteProperty 'RootData' $rootData
$session|Add-Member -MemberType NoteProperty 'DisableExpect100Continue' $DisableExpect100Continue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, i have tried to connect to the Server with the Invoke-Webrequest:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Invoke-WebRequest https://&amp;lt;IP-Address&amp;gt;/ -SkipCertificateCheck&lt;/LI-CODE&gt;&lt;P&gt;This was successfull.&lt;/P&gt;&lt;P&gt;Referring to the inner Exception, the $httpWebRequest.GetResponse() is $null. But why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 11:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157578#M16233</guid>
      <dc:creator>Johannes219</dc:creator>
      <dc:date>2022-01-04T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157654#M16238</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a couple of updates - while i create my own script depending on the HPE ConnectCMDLet, i have found out, that the system proxy settings works against me.&lt;/P&gt;&lt;P&gt;With the line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[System.Net.WebResponse] $resp = $httpWebRequest.GetResponse()&lt;/LI-CODE&gt;&lt;P&gt;i got the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Line |
72 | [System.Net.WebResponse] $resp = $httpWebRequest.GetResponse()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "GetResponse" with "0" argument(s): "The proxy tunnel request to proxy 'http://&amp;lt;proxyUri&amp;gt;/' failed with status code '403'.""&lt;/LI-CODE&gt;&lt;P&gt;Doesn't matter that the authentication fails - the connection should definitly not use this proxy.&lt;/P&gt;&lt;P&gt;So, i tried to reset the proxy with following line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[System.Net.Webrequest]::DefaultWebProxy = New-object System.Net.Webproxy($null)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This results in the root failure again:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Line |
69 | $httpWebRequest.ServicePoint.Expect100Continue = -not($DisableExpect1 …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The property 'Expect100Continue' cannot be found on this object. Verify that the property exists and can be set.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, i tried to configure the webproxy including bypass parameters in reference to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://stackoverflow.com/questions/28434480/creating-proxy-with-bypass-list-fails-if-it-contains" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/28434480/creating-proxy-with-bypass-list-fails-if-it-contains&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$proxyUri = "http&amp;lt;proxy:port&amp;gt;"
$snwr = [System.Net.Webrequest]::DefaultWebProxy = new-object System.Net.Webproxy($proxyUri, $true)
$snwr.Credentials = Import-Clixml -Path "&amp;lt;path-to-credentials&amp;gt;"
$snwr.BypassArrayList.Add("localhost")
$snwr.BypassArrayList.Add("*.local")
$snwr.BypassArrayList.Add("127.0.0.0/8")
$snwr.BypassArrayList.Add("172.16.0.0/16")
$snwr.BypassArrayList.Add("192.168.0.0/16")
$snwr.BypassProxyOnLocal = $true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the bypasslist does not work. The only thing that works is "localhost':&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$snwr.IsBypassed("https://localhost") &amp;gt;&amp;gt; returns true
$snwr.IsBypassed("https://192.168.1.1") &amp;gt;&amp;gt; returns false
$snwr.IsBypassed("https://website.local") &amp;gt;&amp;gt; returns false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, i used the ip-addresses without apostrophes, but without success. Even the "192.168.* does not work.&lt;BR /&gt;There is annother property, called "BypassArrayList.AddRange" There, i don't know which value is valid, i become the followed error every time:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Line |
47 | $snwr.BypassArrayList.AddRange(192.168.0.0/8)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot convert argument "c", with value: "0", for "AddRange" to type "System.Collections.ICollection": "Cannot convert the "0" value of type "System.Int32" to type "System.Collections.ICollection"."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Conclusion - its not a basically error in PowerShell 7, more an error with the proxy settings. I hope, when the proxy settings are correct / bypassed, the connection to the server will success.&lt;/P&gt;&lt;P&gt;How do I configure the proxy bypass settings to work properly?&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 11:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157654#M16238</guid>
      <dc:creator>Johannes219</dc:creator>
      <dc:date>2022-01-05T11:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: RedFish - HPERedFishCMdlets - Error when connecting</title>
      <link>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157816#M16245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The proxy settings are reset does not cause problems anymore.&lt;/P&gt;&lt;P&gt;The root cause for this problem are incompatibilities about the&amp;nbsp;ServerCertificateValidationCallback property of ServicePointManager in PowerShell Core+.&lt;/P&gt;&lt;P&gt;The property is only supported in PowerShell 5.1, not in PowerShell Core and newer.&lt;/P&gt;&lt;P&gt;Links:&lt;/P&gt;&lt;P&gt;&lt;A href="https://get-powershellblog.blogspot.com/2017/12/powershell-core-web-cmdlets-in-depth.html" target="_blank"&gt;https://get-powershellblog.blogspot.com/2017/12/powershell-core-web-cmdlets-in-depth.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/PowerShell/PowerShell/issues/13597" target="_blank" rel="noopener"&gt;ServerCertificateValidationCallback causes problems with secure connections · Issue #13597 · PowerShell/PowerShell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ebookreading.net/view/book/EB9781789536669_423.html#" target="_blank" rel="noopener"&gt;Capturing SSL errors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/43810101/getting-unable-to-find-type-system-net-servicepointmanager-in-powershell-fo" target="_blank" rel="noopener"&gt;macos - Getting "Unable to find type [System.Net.ServicePointManager]." in PowerShell for OS X - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dotnet/runtime/issues/17154" target="_blank" rel="noopener"&gt;HttpWebRequest/HttpClient with self-signed client certificate · Issue #17154 · dotnet/runtime&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to update the HPE RedFish CMDLets?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 10:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/servers-general/redfish-hperedfishcmdlets-error-when-connecting/m-p/7157816#M16245</guid>
      <dc:creator>Johannes219</dc:creator>
      <dc:date>2022-01-07T10:32:02Z</dc:date>
    </item>
  </channel>
</rss>

