' Microsoft Office 365 ProPlus – Online Installer ' Version: 1.0 (Standard Deployment Script) ' Description: Downloads and installs Office 365 ProPlus using the Office Deployment Tool (ODT). On Error Resume Next Set objShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") ' Define temporary folder for ODT strTempFolder = objShell.ExpandEnvironmentStrings("%TEMP%") & "\Office365Installer" If Not objFSO.FolderExists(strTempFolder) Then objFSO.CreateFolder(strTempFolder) End If ' Download URL for Office Deployment Tool strODTUrl = "https://microsoft.com" strODTPath = strTempFolder & "\odt.exe" ' Download ODT using BitsAdmin or PowerShell objShell.Run "powershell -Command ""Invoke-WebRequest -Uri '" & strODTUrl & "' -OutFile '" & strODTPath & "'""", 0, True ' Extract ODT objShell.Run strODTPath & " /extract:""" & strTempFolder & """ /quiet", 0, True ' Create Configuration XML strXMLContent = " " & vbCrLf & _ " " & vbCrLf & _ " " & vbCrLf & _ " " & vbCrLf & _ " " & vbCrLf & _ " " & vbCrLf & _ " " & vbCrLf & _ " " Set objXMLFile = objFSO.CreateTextFile(strTempFolder & "\configuration.xml", True) objXMLFile.Write strXMLContent objXMLFile.Close ' Execute Setup objShell.Run strTempFolder & "\setup.exe /configure " & strTempFolder & "\configuration.xml", 1, True ' Cleanup ' objFSO.DeleteFolder(strTempFolder) WScript.Quit Use code with caution. Copied to clipboard Key Components of this Script:
: The script above is set to OfficeClientEdition="64" . You can change this to 32 if needed. Microsoft Office 365 ProPlus – Online Installer...
: It utilizes the Office Deployment Tool (ODT) , which is the official Microsoft method for automated installations. ' Microsoft Office 365 ProPlus – Online Installer
: Set to Full so you can see the installation progress; change to None for a silent background install. You can change this to 32 if needed
: It targets O365ProPlusRetail . If you have a different license (like Business or Home), this ID must be changed in the XML section.
The full text for the script is a popular Visual Basic Script (.vbs) used to download and install Office 365 directly from Microsoft's Content Delivery Network (CDN).