From 063776105248ce7b06ac3cf5401f6d92e8af731b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 16 Jun 2021 15:41:12 +0300 Subject: Added office activatino aio and activation aio scripts --- activation-aio.cmd | 28 +++++++++++++++++++++ office-activation-aio.cmd | 63 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 activation-aio.cmd create mode 100644 office-activation-aio.cmd diff --git a/activation-aio.cmd b/activation-aio.cmd new file mode 100644 index 0000000..14336b5 --- /dev/null +++ b/activation-aio.cmd @@ -0,0 +1,28 @@ +@echo off +:: Get admin priviledges +if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) + +set "download=bitsadmin /transfer Downloading /download /priority foreground" + +cd /d C:\ + +:: ========================== +:: KMS Activator Installation +:: ========================== + +:: Add exception to Windows Defender +powershell -inputformat none -NonInteractive -Command Add-MpPreference -ExclusionProcess %cd%KMS_VL_ALL_AIO.cmd -Force +powershell -inputformat none -NonInteractive -Command Add-MpPreference -ExclusionExtension ".tmp" -Force + +%download% https://raw.githubusercontent.com/abbodi1406/KMS_VL_ALL_AIO/master/KMS_VL_ALL_AIO.cmd %cd%KMS_VL_ALL_AIO.cmd + +%cd%KMS_VL_ALL_AIO.cmd /a + +del %cd%KMS_VL_ALL_AIO.cmd + +:: Remove exception from Windows Defender +powershell -inputformat none -NonInteractive -Command Remove-MpPreference -ExclusionProcess %cd%KMS_VL_ALL_AIO.cmd -Force +powershell -inputformat none -NonInteractive -Command Remove-MpPreference -ExclusionExtension ".tmp" -Force + +echo Done +PAUSE diff --git a/office-activation-aio.cmd b/office-activation-aio.cmd new file mode 100644 index 0000000..c014345 --- /dev/null +++ b/office-activation-aio.cmd @@ -0,0 +1,63 @@ +@echo off +:: Get admin priviledges +if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) + +set "download=bitsadmin /transfer Downloading /download /priority foreground" +set "office_config=Configuration.xml" + +cd /d C:\ + +:: =================== +:: Office installation +:: =================== + +( +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +)>%office_config% + +%download% https://officecdn.microsoft.com/pr/wsus/setup.exe %cd%\setup.exe + +%cd%setup.exe /configure Configuration.xml + +del %office_config% +del %cd%setup.exe + +:: ========================== +:: KMS Activator Installation +:: ========================== + +:: Add exception to Windows Defender +powershell -inputformat none -NonInteractive -Command Add-MpPreference -ExclusionProcess %cd%KMS_VL_ALL_AIO.cmd -Force +powershell -inputformat none -NonInteractive -Command Add-MpPreference -ExclusionExtension ".tmp" -Force + +%download% https://raw.githubusercontent.com/abbodi1406/KMS_VL_ALL_AIO/master/KMS_VL_ALL_AIO.cmd %cd%KMS_VL_ALL_AIO.cmd + +%cd%KMS_VL_ALL_AIO.cmd /a + +del %cd%KMS_VL_ALL_AIO.cmd + +:: Remove exception from Windows Defender +powershell -inputformat none -NonInteractive -Command Remove-MpPreference -ExclusionProcess %cd%KMS_VL_ALL_AIO.cmd -Force +powershell -inputformat none -NonInteractive -Command Remove-MpPreference -ExclusionExtension ".tmp" -Force + +echo Done +PAUSE -- cgit v1.3.1-23-gd82d