Thursday, February 19, 2015

Office 365 Domain install with a local share via Script and/or GPO

Warning: Uninstall all previous versions of office, that includes 2013 and 365 demos before proceeding
Users must be admins on their systems temporarily for the GPO to work.

Create a shared folder on your central server for example \\SRV-UTIL01\OfficeDeploy\

Download the Office Deployment Tool and extract to \\SRV-UTIL01\OfficeDeploy\

Create 2 XML files with the options

The first is Download.XML which sets your path, 32 or 64 bit, and is used for the download process:

<Add SourcePath="\\SRV-UTIL01\OfficeDeploy\" OfficeClientEdition="64" >
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />

The second is Configuration.xml used to deploy Office 365 ProPlus package

Note: The example that is included with the Office Deployment Tool might as well be blank since it is rem’d out with the <!— and --!> Here is what it should look like when ready to use:

Note: Version is optional however it assures your system will use the media version you have in that path and not grab a newer version online.

<Add SourcePath="\\SRV-UTIL01\OfficeDeploy\" Version="15.0.4649.1001" OfficeClientEdition="64" >
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
<Updates Enabled="TRUE" UpdatePath="\\SRV-UTIL01\OfficeDeploy\" />
<Display Level="None" AcceptEULA="TRUE" />
<Logging Path="\\SRV-UTIL\OfficeDeploy\Logfiles\" />
<Property Name="AUTOACTIVATE" Value="1" />

Now to create your local copy of the media run the following command:
Setup.exe /Download Download.xml

Note: when you run the above command above it will create \\SRV-UTIL01\OfficeDeploy\Office\Data\Version\ and under that folder will have the large stream.x32 or .x64 files. This runs in a plain cmd line window with no output on status. So be patient as it will be downloading approx. 2GB of data or more.

While that is downloading you can modify or create your deployment script and GPO

For example OfficePush.bat as shown below:


echo off
Rem Created by Kevin Oppihle
If EXIST "C:\Program Files\Microsoft Office 15\ClientX64\officeclicktorun.exe" goto 365Complete else goto :365Needed
Echo Installing Office 365 >c:\365.txt
\\SRV-Util01\OfficeDeploy\Setup.exe /configure \\SRV-Util01\officedeploy\configuration.xml >>c:\365.txt
Echo Office 365 Installed >c:\365.txt

The batch file above first confirms if office is already installed. If it is then if you open the txt file c:\365.txt it will say “Office 365 installed”. However if office is not installed it will use the deployment path outlined in the batch file to run the installation. While the installer is running the 365.txt file will say “installing Office 365” when the installation is completed the 365.txt file will change to “Office 365 Installed”. It is set to run minimized so to verify when it is completed reference the 365.txt file. The installation time depends on the network and PC speed but expect an average of 10 minutes. The office icons appear before the installer is completed. If you open an office application before the completion of the installer it will slow the process as it may download from online.

Now you need to copy the batch file to your sysvol scripts and assign the batch file to be a logon script of the users.

Note: this will check and install as necessary every time the user logs on so once your deployment is finished unassign the GPO.

Happy Office 365 Deployment!

No comments:

Post a Comment