Last active
August 31, 2016 16:29
-
-
Save danjpadgett/826aeaeb849297a40bcac1edc1ab0ec7 to your computer and use it in GitHub Desktop.
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment