You may have noticed when installing Office 365 via the Click to Run installer you get a popup like this for each user.
- Setting key for OptInDisable in SOFTWARE\Microsoft\Office\16.0\Common\General
- Setting key for ShownFirstRunOptin
- in SOFTWARE\Microsoft\Office\16.0\Common\General
- Setting key for Authorized in SOFTWARE\Microsoft\Office\16.0\Common\General
- Setting key for AcceptAllEulas in SOFTWARE\Microsoft\Office\16.0\Common\General
- Find a step after you install Office 365 in your task sequence.
- If you have a batch file or script that does windows customisations add the following to it (or create a new script).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM //Sets office EULA as accepted for all users | |
REM // Sets variable for hostname as MYVAR, loads relevant data into defualt user reg hive | |
REM // Note .. use at own will may not comply with microsoft licensing agreements. | |
FOR /F "usebackq" %%i IN (`hostname`) DO SET MYVAR=%%i | |
reg load HKU\DefaultTemp "C:\Users\Default\NTUSER.DAT" | |
reg add "HKU\DefaultTemp\SOFTWARE\Microsoft\Office\16.0\Registration\%MYVAR%\{90160000-000F-0000-0000-0000000FF1CE}\O365ProPlusRetail\EULA" /v 16 /t REG_SZ /d "PLEASE NOTE: Your use of the subscription service and software is subject to the terms and conditions of the agreement you agreed to when you signed up for the subscription and by which you acquired a license for the software." /F | |
reg unload HKU\DefaultTemp | |
What we are doing here is loading in the Default User registry hive and adding the entry which is created when each user accepts the EULA.
We do this via OSD as the key has the computers hostname within it, and making this dynamic from a Group Policy preference is not easily achieved.
Also, i set the following
Disable “Make Skype better ”
Value: UserConsentedTelemetryUpload
Key: HKCU\SOFTWARE\Microsoft\Office\16.0\Common\General
DWORD: 0
Disable “file type prompt on EU only”
Value: ShownFileFmtPrompt
Key: HKCU\SOFTWARE\Microsoft\Office\16.0\Common\General
DWORD: 1
NB. In SetDefaults.cmd i also set speech language to en-GB and set up DesktopInfo.
Cheers,
Dan