Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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