Skip to content

Instantly share code, notes, and snippets.

@danjpadgett
Last active August 31, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danjpadgett/826aeaeb849297a40bcac1edc1ab0ec7 to your computer and use it in GitHub Desktop.
Save danjpadgett/826aeaeb849297a40bcac1edc1ab0ec7 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment