From b5f20b0b70311e363a454219957628cda8e0f11a Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 2 Oct 2019 16:13:55 +0100 Subject: Rework activation. Add Office --- 1-activation.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/1-activation.bat b/1-activation.bat index a29f4eb..aa7a92c 100644 --- a/1-activation.bat +++ b/1-activation.bat @@ -1,2 +1,6 @@ -ping -n 1 minskio.co.uk | find "TTL=" >nul -if errorlevel 0 ( slmgr/skms minskio.co.uk && slmgr/ato ) else ( echo server did not respond to ping requests) \ No newline at end of file +rem server address +set kms_server=minskio.co.uk +rem windows activation +slmgr/skms %kms_server% && slmgr/ato +rem office activation, if it's installed +if exist "%ProgramFiles(x86)%\Microsoft Office\Office14\OSPP.VBS" cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\OSPP.VBS" /sethst:%kms_server% && cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\OSPP.VBS" /act \ No newline at end of file -- cgit v1.2.3