TechShizz | All posts tagged 'Deployment'

Removing Office 365 via Group Policy

This guide assumes you have a software distribution point set up for you office 365 deployment.
Computers should have UAC disabled and user should have local admin rights. To achieve this use group policy.

1. Change the configuration.xml file to this:

<Configuration> <Remove All="TRUE"/> </Configuration>

2. Create or use your existing group policy to run the startup script for your office 365 deployment.
3. Reboot the machines which need Office 365 removing, the software will be uninstalled on logon.

Deploying Office via Group Policy

Before installing office like this you need to ensure that office has been removed from all target machines.

1. Create a software distribution share on the local network and share to all users
2. Download and configure office for deployment using the Office Deployment tools. Ensure the correct version, language, update path and architecture is configured in the configuration.xml.
3. Create two group policies: The first is to give users local admin rights and remove UAC. The second is to deploy the software.

The the permissions policy you must disable UAC and create an entry in the restricted groups as below. This policy will apply to all computers that the software is deployed to.


The second policy simply adds a login script to point to the UNC path of the Install.bat for the deployment tool.
For more info on this see Installing office with Click to Run.

Installing Office 365 with the Click to Run Deployment Tool

The Office 365 Click-to-Run installer can install any version of Office in any configuration. This is an ideal tool to set up on a central server, and specify a standard configuration for all users. This makes future installs really quick and easy with no internet download required.

Download - Microsoft Office 2013 Deployment Tool

Download - Microsoft Office 2016 Deployment Tool


[The following exemples have the Deployment Tool saved in c:\office 2013 deployment tool\]



The two main switches are:


/download


Use this switch to download the packages you require. You need to edit the configuration XML to specify what you want to download.

Example: (download.xml)


If we want to install O365BusinessRetail 64 bit in English the config file will be:


<Configuration>
  <Add SourcePath="c:\Office 2013 Deployment Tool" OfficeClientEdition="64">
   <Product ID="O365BusinessRetail" >
     <Language ID="en-us" />     
   </Product>
  </Add>
</Configuration>


To execute the download run: (download.bat)


setup.exe /download "c:\office 2013 deployment tool\download.xml"


/configure


This switch installs the application and configures it as specified in the XML file


Example file (configuration.xml): To install O365BusinessRetail in 32 bit in English


<Configuration>
  <Add SourcePath="c:\office 2013 deployment tool" OfficeClientEdition="32">
   <Product ID="O365BusinessRetail" >
     <Language ID="en-us" />     
   </Product>
  </Add>
</Configuration>


To execute the install run the following: (setup.bat)


setup.exe /configure "c:\office 2013 deployment tool\configuration.xml"


The following links contain all of the Office 365 versions that can be downloaded/installed and detailed explaination of the use of each switch. Also how to exclude certain applications from install such as installing office without Microsoft Access.



https://support.microsoft.com/en-us/kb/2842297


Using DISM to capture and apply an Image from one disk to another disk

On Source Machine
You may want to sysprep the machine first, depending on what you are trying to do.

Insert WinPE Disk
net use z: \\Server\D$ Pa$$word /USER:comain.local\username
Dism /Capture-Image /ImageFile:z:\NewImage.wim /CaptureDir:C:\ /Name:"NewLaptop"

Exit

On Target Machine
net use z: \\Server\D$ Pa$$word /USER:domain.local\username

Prepare the Disk(This wipes the whole disk and add one partition onyl)
select disk 0
clean
create partition primary
select partition 1
active
assign letter="c"
format fs=ntfs label="Windows" quick
exit

You could skip this step or amend it as needed to prepare the partition as required.

Apply the Image
dism /apply-image /imagefile:z:\NewImage.wim /index:1 /applydir:c:\
bcdboot c:\Windows /s c: