Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear @Shravan Viswanathan0101,
Thank you for reaching out to the Microsoft 365 Q&A forum community support team. We understand you need to create an offline installation package for Office LTSC 2024 using the Office Deployment Tool (ODT) in an environment without internet access. This is a common scenario for secure or air-gapped systems.
Below is a concise, step-by-step guide to achieve this, including the required endpoints for whitelisting and official Microsoft references.
Since your VM has no internet, you must first use a connected machine (with internet) to download the offline installation files, then transfer them to your VM.
Step 1: Prepare on a connected machine
- Download the Office Deployment Tool (ODT) from the official source: Microsoft Download Center: Office Deployment Tool and save
setup.exe(the ODT). - Create a Configuration XML file for Office LTSC Professional 2024 (example
configuration.xml):
Note: Adjust<Configuration> <Add OfficeClientEdition="64" Channel="PerpetualVL2024"> <Product ID="Pro2024Volume"> <Language ID="en-us" /> </Product> </Add> <Updates Enabled="FALSE" /> <Display Level="None" AcceptEULA="TRUE" /> <Logging Path="%TEMP%" Level="Standard" /> </Configuration>Language IDas needed. ThePerpetualVL2024channel is for LTSC 2024. - Download Office files on the connected machine:
- Place
setup.exe(ODT) andconfiguration.xmlin a folder (e.g.,C:\OfficeDownload).
- Place
- Open Command Prompt as Administrator in that folder and run:
This downloads all necessary Office LTSC 2024 files into a subfolder named Office.setup.exe /download configuration.xml
Step 2: Whitelisted URLs (for your firewall/proxy)
To successfully download the offline files on the connected machine, ensure these endpoints are accessible. These are the primary Office CDN URLs used by ODT:
Important:
- Whitelist
officecdn.microsoft.com(and subdomains) fully, as it hosts the bulk of installation binaries. - If using volume licensing, your VM will later need access to your KMS server or MAK activation via internal network.
For a comprehensive, official list, refer to: Microsoft 365 URLs and IP address ranges - Microsoft 365 Enterprise | Microsoft Learn
Filter for the Microsoft 365 Common and Office service category.
Step 3: Offline installation on your VM
- Copy the entire download folder (including
Officesubfolder,setup.exe, andconfiguration.xml) to your VM. - In the VM, modify
configuration.xmlto ensure <Updates Enabled="FALSE" /> remains. - Run installation as Administrator:
setup.exe /configure configuration.xml - Activation:
- If using KMS: Ensure VM can reach your KMS host over TCP port 1688.
- If using MAK: Run
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (in %ProgramFiles%\Microsoft Office\Office16).
Immediate verification
- After installation, open any Office app to check if it runs without prompting for internet.
- For activation errors, check:
cscript ospp.vbs /dstatus
For reference, you can review Microsoft’s official guidance:
Deploy Office LTSC 2024 - Office | Microsoft Learn
Configure ODT for offline installation
This method ensures a fully offline installation. If you encounter specific errors during the download or installation phase, please share the exact error message from the logging file for further assistance.
Please note that as a forum moderator, I don’t have access to backend tools or internal systems to investigate further, and certain settings or configurations are managed exclusively by your organization’s administrators, so I’m unable to check or make changes on that side. That said, I truly hope these suggestions help you move forward.
Thank you for your patience. We are here to support your deployment.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.