Add-AppxPackage -AppInstallerFile fails with 0x800706BA, The RPC server is unavailable.

Carlo Mendoza 151 Reputation points
2025-01-22T19:19:59.3566667+00:00

I'm trying to install some .appinstaller files via PowerShell. The appinstaller and packages are in SharePoint (requires auth). I'm unsure how to fix this. What do I need?

Add-AppxPackage -AppInstallerFile "C:\Users\User\Downloads\App.appinstaller"

but it fails:

Add-AppxPackage : Deployment failed with HRESULT: 0x800706BA, The RPC server is unavailable.

The RPC server is unavailable.

Appinstaller operation failed with error code 0x800706BA. Detail: The RPC server is unavailable.

NOTE: For additional information, look for [ActivityId] 4e07ee51-6ce1-0006-0edb-594ee16cdb01 in the Event Log or use the command line Get-AppPackageLog -ActivityID 4e07ee51-6ce1-0006-0edb-594ee16cdb01      

Logs:



PS C:\Users\User> Get-AppPackageLog -ActivityID 4e07ee51-6ce1-0006-0edb-594ee16cdb01                                                                                                                                                         Time                      ID           Message                                                                          ----                      --           -------                                                                          1/22/2025 12:00:17 PM     603          Started deployment AddFromAppInstallerOperation operation on a package with main parameter App.appinstaller and Options 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.                                                               1/22/2025 12:00:17 PM     651          Appinstaller operation failed with error code 0x800706BA. Detail: The RPC sql server is unavailable.
1/22/2025 12:00:17 PM     404          AppX Deployment operation failed for package file:///C:/Users/User/Downloads/App.appinstaller with error 0x800706BA. The specific error text for this failure is: Appinstaller operation failed with error code 0x800706BA. Detail: The RPC server is unavailable. 
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,762 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karlie Weng 19,106 Reputation points Microsoft Vendor
    2025-01-24T01:03:54.8533333+00:00

    Hello,

    Check your rpc service.

    Open services.exe

    Find "remote procedure call(rpc)"

    If it is not running, start it.

    In case there's something broken, try this command in your cmd :

    Sfc /scannow

    DISM /Online /Cleanup-image /RestoreHealth


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.