summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2019-10-02 16:13:55 +0100
committerPeter2019-10-02 16:13:55 +0100
commitb5f20b0b70311e363a454219957628cda8e0f11a (patch)
treef8a6e84994e59482559d57b1b7bd677bb17b392a
parent78b9307da02ca697a59f026270c5f6d7988b30a7 (diff)
downloadwin10-prep-b5f20b0b70311e363a454219957628cda8e0f11a.tar.gz
win10-prep-b5f20b0b70311e363a454219957628cda8e0f11a.tar.bz2
win10-prep-b5f20b0b70311e363a454219957628cda8e0f11a.zip
Rework activation. Add Office
-rw-r--r--1-activation.bat8
1 files 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