Skip to content

Instantly share code, notes, and snippets.

@bohack
Created October 19, 2017 17:51
Show Gist options
  • Save bohack/8c5939f9649269d5086f2f304ab68528 to your computer and use it in GitHub Desktop.
Save bohack/8c5939f9649269d5086f2f304ab68528 to your computer and use it in GitHub Desktop.
Office Activation Script on Startup
@ECHO OFF
REM Jon Buhagiar
REM 10/19/17
REM Office Manual Activation
IF EXIST "C:\Support\.officeactivation" GOTO :END
CSCRIPT "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /act
ECHO %ERRORLEVEL% - %DATE% - %TIME% > "C:\Support\.officeactivation"
:END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment