PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,762 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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.