Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

README_New GPOOfficeInstallation

AStigall edited this page Apr 12, 2017 · 4 revisions

New GPO Office Installation

This script will configure an existing Active Directory Group Policy to silently install Office 365 ProPlus on computer startup.

For more information on deploying Office via Group Policy go to https://technet.microsoft.com/en-us/library/Ff602181.aspx

Prerequisites

  1. Active Directory
  2. An existing Group Policy Object that is assigned to the target computers you want to install Office 2013 Click-To-Run

Setup

Download and extract the GitHub script repository onto the computer that will modify the Group Policy.

Example

  1. Open an elevated PowerShell console.

     From the Run dialog type PowerShell and run as administrator
    
  2. Change directory to the location where the PowerShell Script is saved on your local machine.

     Example: cd C:\Setup-GPOOfficeInstallation
    
  3. Dot-Source the Configure-GPOOfficeInstallation function into your current session.

     Type . .\Setup-GPOOfficeInstallation.ps1
     
     By including the additional period before the relative script path you are 'Dot-Sourcing' 
     the PowerShell function in the script into your PowerShell session which will allow you to 
     run the function from the console.
    
  4. Download the Office channel files you plan to deploy in your environment

     For example, type Download-GPOOfficeChannelFiles -Channels Deferred,FirstReleaseDeferred -OfficeFilesPath C:\OfficeChannelFiles -Languages en-us,de-de -Bitness v32
    
     In this example, the latest 32-bit versions of the Deferred and FirstReleaseDeferred 
     channels will be downloaded to C:\OfficeChannelFiles. If C:\OfficeChannelFiles does not 
     exist a new directory will be created. Both English and German languages will be downlaoded.
    
  5. Configure the OfficeDeployment folder used to stage the Office channel files and the PowerShell scripts

       Configure-GPOOfficeDeployment -Channel Deferred -Bitness v32 -OfficeFilesPath C:\OfficeChannelFiles -MoveSourceFiles $true
    

    A new directory will be created on your largest drive called OfficeDeployment$ and all of the necessary files will be copied here.

    Note - Don't worry if you have multiple channels downloaded, choose any of the channels you've downloaded and the bit. If you do not set -MoveSourceFiles to $true the files will only be copied to the new directory.

  6. Create an Office deployment using an existing GPO.

       Create-GPOOfficeDeployment -GroupPolicyName "DeployDeferredChannel" -DeploymentType DeployWithScript -Channel Deferred -Bitness v32
    
  7. Refresh the Group Policy on a client computer:

       From the Start screen type command and Press Enter
       Type "gpupdate /force" and press Enter.
    
  8. Restart the client computer.

       When the client computer starts the script will launch in the background. 
       You can verify if the script is running by opening 
       Task Manager and look for the Click To Run process.
    

Analytics