Applications Installation

Applications Installation

TOC


Chocolatey Script Download

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Ensure that Chocolatey is installed
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

# Install desired software
choco install 7zip.install -y
choco install ultravnc -y
choco install adobereader -y
choco install notepadplusplus.install -y
choco install googlechrome -y
choco install potplayer -y
choco install fastcopy -y
choco install honeyview -y
choco install choco-cleaner -y
choco install iperf3 speedtest -y

Microsoft Office

Office Pro 2016 Download

Office LTSC 2021 Download

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
REM Define URLs and paths
set url=https://apps.kingtam.eu.org/apps/scripts/Office_LTSC_Professional_Plug_2021_x64_Eng_Word_Excel_PPT.zip
set downloadPath=%USERPROFILE%\Downloads\Office_LTSC_Professional_Plug_2021_x64_Eng_Word_Excel_PPT.zip
set extractPath=%USERPROFILE%\Downloads\
set setupPath=%USERPROFILE%\Downloads\Office_x64_Eng_Word_Excel_PPT

REM Check if file exists, if not download
if not exist %downloadPath% (
  bitsadmin /transfer "Office-LTSC-2021-Download-Job" %url% %downloadPath%
)

REM Extract zip file
::7z x %downloadPath% -o%extractPath%

:: Unzip the downloaded file
powershell -Command "Expand-Archive -Path '%downloadPath%' -DestinationPath '%extractPath%'"

REM Run installer
%setupPath%\setup.exe /configure %setupPath%\config.xml

KSM Activation:

Windows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Set the KMS host
$KMSHost = "kms.03k.org"

# Activate Windows 10 using KMS
$WinPath = "${env:windir}\System32"
& "$WinPath\cscript.exe" "$WinPath\slmgr.vbs" /skms $KMSHost
& "$WinPath\cscript.exe" "$WinPath\slmgr.vbs" /ato

# Verify activation status
& "$WinPath\cscript.exe" "$WinPath\slmgr.vbs" /dlv

Office:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Set the KMS host address
$KMSHost = "kms.03k.org"

# Set the KMS client key
#$KMSClientKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"

# Set the Office version folder name
$OfficeVersion = "Office16"

# Install the KMS client key
cscript "$env:ProgramFiles\Microsoft Office\$OfficeVersion\ospp.vbs" /inpkey:$KMSClientKey

# Point the client to the KMS host
cscript "$env:ProgramFiles\Microsoft Office\$OfficeVersion\ospp.vbs" /sethst:$KMSHost

# Activate Office using KMS
cscript "$env:ProgramFiles\Microsoft Office\$OfficeVersion\ospp.vbs" /act