none
PowerShell Exception Error 0x800706BE RRS feed

  • Question

  • We needed to change the static IP scheme created by a retired IT Person.  So we opened PowerShell and ran the following commands, which work, but we keep getting the Exception Error.  Our research via the forums turned up nothing that explained the error in depth and how to resolve it.  So we are hoping that you all may have an answer or suggestion.

    $a = Get-WMIObject Win32_NetworkAdapterConfiguration -ComputerName XYZ9999 -Filter IPEnabled=TRUE

    (Works - no errors)

    $a.EnableStatic("10.1.100.99", "255.255.0.0")

    (Runs and changes the IP, but we get the below)

    Exception calling "EnableStatic" : "The remote procedure call failed. (Exception from HRESULT: 0x800706BE)"
    At line:2 char:1
    + $a.EnableStatic("10.1.100.99", "255.255.0.0")
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : WMIMethodException

    Thank you.

    Tuesday, February 14, 2017 7:28 PM

Answers

  • Error 0x800706BE is a 32-bit error code from COM. The high word (hex 8007) indicates a Win32 error, and the low word (hex 6BE, decimal 1726) is the Win32 error RPC_S_CALL_FAILED: "The remote procedure call failed."

    You are connecting to the computer using some IP address, and then changing the IP address being used by that connection. I'm not surprised that this returns an error.

    In any case, the usual recommendation is to use DHCP rather than static IP addressing. If you need specific machines to always get particular IPs for some reason, you can use reservations.


    -- Bill Stewart [Bill_Stewart]


    Tuesday, February 14, 2017 8:06 PM
    Moderator

All replies

  • Error 0x800706BE is a 32-bit error code from COM. The high word (hex 8007) indicates a Win32 error, and the low word (hex 6BE, decimal 1726) is the Win32 error RPC_S_CALL_FAILED: "The remote procedure call failed."

    You are connecting to the computer using some IP address, and then changing the IP address being used by that connection. I'm not surprised that this returns an error.

    In any case, the usual recommendation is to use DHCP rather than static IP addressing. If you need specific machines to always get particular IPs for some reason, you can use reservations.


    -- Bill Stewart [Bill_Stewart]


    Tuesday, February 14, 2017 8:06 PM
    Moderator
  • Thank you.
    Tuesday, February 14, 2017 9:20 PM