Installation of Office 2024 Professional Plus x64 (using VL license). Don't forget to use your own valid VL license to make it work for your organisation.
Office website: office.com
Configurator website: config.office.com
GVLK key from Microsoft: learn.microsoft.com
Update 2025-03-21:
Click to reveal
Click to hide
Updated the cleanup part to be correct.
Changed the order of which the setup is working (missed the removal part from the installation).
Modified the TempPath to shorten the script.
Here we go:
$tp = "C:\TempPath"
mkdir $tp
Invoke-WebRequest -Uri https://cdn.mspot.se/files/M365/O24setup.exe -OutFile $tp\setup.exe
Invoke-WebRequest -Uri https://cdn.mspot.se/files/M365/O24LTSC-configuration.xml -OutFile $tp\Configuration.xml
cmd /c "$tp\setup.exe /configure $tp\Configuration.xml"
del $tp\setup.exe
del $tp\Configuration.xml
In order to get it activated you could also add this script (Point it towards your own KMS server on line 2):
$opath = "%programfiles%\Microsoft Office\Office16\"
cscript //nologo $opath'ospp.vbs' /sethst:my.kmsserver.com
Start-Sleep -s 10
cscript //nologo $opath'ospp.vbs' /cachst:TRUE
Start-Sleep -s 10
cscript //nologo $opath'ospp.vbs' /act
Start-Sleep -s 10