-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy_office.bat
37 lines (37 loc) · 1.22 KB
/
deploy_office.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
title Office Deployment Script
echo Office Deployment Script
echo Version: v1.0.0
echo Made by: Endeade
timeout /t 5
cls
echo Press Enter if you ran this as Administrator.
echo If not, right-click this batch and then click "Run as Administrator".
pause
echo Copying setup.exe and the XML to your Desktop...
copy setup.exe %userprofile%\Desktop /y
copy Config.xml %userprofile%\Desktop /y
echo Setting the KMS server to automatically activate...
slmgr.vbs /skms kms8.msguides.com
echo Checking if you already ran this script on this computer (copying Office deployment tools to Desktop)...
move %temp%\officedep\*.* %userprofile%\Desktop\ /y
echo Check to make sure you have setup.exe and Config.xml on your Desktop, then press any key.
pause
cls
echo ###############################
echo # Deploying Office 2021 #
echo ###############################
echo.
echo Starting setup.exe...
cd %userprofile%\Desktop
echo Started setup.exe.
echo Setup.exe is now deploying Office 2021...
setup.exe /configure Config.xml
echo Setup.exe has finished, moving the config files into the temp dir.
mkdir %temp%\officedep
move Config.xml %temp%\officedep\ /y
move setup.exe %temp%\officedep\ /y
echo Done.
echo Press any key to close...
pause
exit