Fix Microsoft 365 Error 0x80004005 When Installing Office in Windows Virtual Desktop
Question details
The user needs to resolve Microsoft 365 installation error 0x80004005 and Unlicensed Product messages in a Windows Virtual Desktop VM.

- Product
- Microsoft 365 Apps
- Device & OS
- Windows Virtual Desktop (Windows)
- Scenario
- Installing or reinstalling Microsoft 365 Apps inside a Windows Virtual Desktop virtual machine.
- Observed behavior
- Office installation fails with error 0x80004005 and Office apps show Unlicensed Product messages.
Before troubleshooting, collect a screenshot of the complete error and confirm that the Microsoft 365 subscription supports shared computer activation for Windows Virtual Desktop deployment.
Reinstall Microsoft 365 with the official installer and rule out network or firewall interference
Use this first when the error appears during a standard Microsoft 365 installation in Windows Virtual Desktop and you need to eliminate common download, proxy, or firewall causes.
Sign in at www.office.com, select Install and more > Install Microsoft 365 apps, and download the setup file to the Windows Virtual Desktop VM.
Disconnect the VM from the current network, connect to a different network or hotspot, and run the installer again.
Open Windows Security > Firewall & network protection, turn off the firewall temporarily, or disconnect any VPN/proxy, then retry the installation.
Install Microsoft 365 Apps with the Office Deployment Tool in Windows Virtual Desktop
Use this when the standard installer continues to fail with 0x80004005; the Office Deployment Tool provides a controlled XML-based installation for virtual desktop environments.
Verify Microsoft 365 licensing supports the Windows Virtual Desktop scenario
Use this if installation succeeds but Office still reports Unlicensed Product, or before deployment to avoid licensing-related activation failures.
Use WPS Office in Windows Virtual Desktop to Avoid Microsoft 365 Installation Error 0x80004005
If Microsoft 365 installation continues to fail in Windows Virtual Desktop, WPS Office is a free, lightweight and familiar alternative that installs without complex deployment tooling, opens and saves Microsoft Office formats, and lets you keep working with documents, spreadsheets, and presentations.

Frequently Asked Questions
Why does error 0x80004005 appear when installing Microsoft 365 in Windows Virtual Desktop?
It usually indicates an installation failure caused by network or proxy interference, a partial download, Windows Installer issues, or a Microsoft 365 plan that does not support Shared Computer Activation in virtual desktops.
How can I install Microsoft 365 in Windows Virtual Desktop when the normal installer fails?
Use the Office Deployment Tool with a configuration.xml file that sets SharedComputerLicensing to 1, then run setup.exe /configure configuration.xml from an elevated Command Prompt.
What should I check if Office installs but still says Unlicensed Product?
Open the Microsoft 365 admin center, confirm the assigned license includes Microsoft 365 Apps, and verify shared computer activation is enabled for the Windows Virtual Desktop deployment.
Can WPS Office open and edit Microsoft Office files if I cannot install Microsoft 365?
Yes, WPS Office supports .docx, .xlsx, and .pptx files and provides a free, lightweight alternative for viewing and editing Microsoft Office documents.





