mein Office 2024 LTSC lasse ich vollautomatisch über die autounattend.xml installieren, aktivieren (.cmd) und auf meine Bedürfnisse anpassen (per Registry-Einträge).
Installation:
die Installation erfolgt über Winget mit --configure und einer angepassten Configuration.xml (ProPlus2024Volume.xml). Das funktioniert nur, wenn eine Internetverbindung während der Installation vorhanden ist, da die .xml auf einem eigenen FTP-Server liegt (müßte auch mit einer Fritz.Box gehen).
Code: Alles auswählen
<SynchronousCommand wcm:action="add">
<Order>12</Order>
<Description>Office</Description>
<CommandLine>cmd /c winget install --id "Microsoft.Office" --override "/configure https://www.XXXXXXXX.de\ftp\ProPlus2024Volume.xml"</CommandLine>
</SynchronousCommand>
Auf dem Desktop möchte ich einen Shortcut haben für eine Verknüpfung zum Office Update:
Code: Alles auswählen
<File path="C:\Windows\Setup\Scripts\unattend-03.ps1">
$strTargetPath = "$env:CommonProgramFiles\microsoft shared\ClickToRun\OfficeC2RClient.exe"
$strLinkFile = "$env:USERPROFILE\Desktop\Office.lnk"
$shell = New-Object -ComObject WScript.Shell
$Shortcut = $shell.CreateShortcut($strLinkFile)
$Shortcut.TargetPath = $strTargetPath
$Shortcut.HotKey = "Ctrl+Shift+C"
$Shortcut.Arguments = "/update user"
# $lnk.Arguments =
# Set the window style (3=Maximized 7=Minimized 4=Normal)
$shortcut.WindowStyle = 3
$Shortcut.IconLocation = "$env:CommonProgramFiles\microsoft shared\ClickToRun\OfficeC2RClient.exe"
$Shortcut.Save()
</File>
für die Office Einstellungen werden diese Registry-Einträge vorgenommen. Es kommen keinerlei PopUps mehr, um z.B. die Privatsphäreneinstellungen zu akzeptieren. Theme entweder System oder Colored. Zum Speichern sind die alten Office-Formate voreingestellt (.xls, .ppt, .doc):
Code: Alles auswählen
<File path="C:\Windows\Setup\Scripts\unattend-01.reg">
Windows Registry Editor Version 5.00
;Office User Settings
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\word\options]
"defaultformat"="Doc"
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\word\options]
"defaultformat"="Doc"
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\options]
"defaultformat"=dword:00000038
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Excel\options]
"defaultformat"=dword:00000038
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\powerpoint\options]
"defaultformat"=dword:00000000
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
"ShowSuggestionDialog"=dword:00000002
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\powerpoint\options]
"defaultformat"=dword:00000000
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
"ShowSuggestionDialog"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common]
"PointerModeInitVersion"=dword:00000001
"OverridePointerMode"=dword:00000001
"SplashScreenLicense"=dword:00000006
"PrivacyDialogsDisabled"=dword:00000001
; System
"UI Theme"=dword:00000007
; Colored
;"UI Theme"=dword:00000006
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Common]
"PointerModeInitVersion"=dword:00000001
"OverridePointerMode"=dword:00000001
"SplashScreenLicense"=dword:00000006
"PrivacyDialogsDisabled"=dword:00000001
; System
"UI Theme"=dword:00000007
; Colored
;"UI Theme"=dword:00000006
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Privacy\SettingsStore\Anonymous]
"OptionalConnectedExperiencesNoticeVersion"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\ExperimentConfigs\Ecs]
"CountryCode"="std::wstring|DE"
"PerpetualLicenseInfo"="std::wstring|2024"
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\General]
"Xlstart"="XLSTART"
"Themes"="Themes"
"Templates"="Templates"
"Stationery"="Stationery"
"Startup"="STARTUP"
"Signatures"="Signatures"
"RecentFiles"="Recent"
"Queries"="Queries"
"Proof"="Proof"
"MyPictures"="My Pictures"
"MyDocuments"="My Documents"
"Favorites"="Favorites"
"Desktop"="Desktop"
"ApplicationData"="Application Data"
"AddIns"="AddIns"
"Actors"="Actors"
"NoTrack"=dword:00000001
"FirstRun"=dword:00000000
"FileFormatBallotBoxAppIDBootedOnce"=dword:00000001
"FileFormatBallotBoxTelemetryEventSent"=dword:00000001
"FileFormatBallotBoxTelemetryConfirmationEventSent"=dword:00000001
"FileFormatBallotBoxTelemetrySent"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity]
"TrustedSiteUrlForUserAgentVersionInfo"=""
"Version"=dword:00000001
"SignedOutOneAuthMigrationComplete"=dword:00000001
"Canary"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources]
"UIFallbackLanguages"="x-none;de-de"
"HelpLanguageTag"="de-de"
"PreferredEditingLanguage"="de-DE"
"PreviousPreferredEditingLanguage"="de-DE"
"WordChangeInstallLanguage"="No"
"WordMailChangeInstallLanguage"="No"
"XLChangeInstallLanguage"="No"
"PPTChangeInstallLanguage"="No"
"AccessChangeInstallLanguage"="No"
"OutlookChangeInstallLanguage"="No"
"PublisherChangeInstallLanguage"="No"
"ProjectChangeInstallLanguage"="No"
"OneNoteChangeInstallLanguage"="No"
"LangTuneUp"="OfficeCompleted"
"UISnapshotLanguages"=""
"HelpFallbackLanguages"="x-none;de-de"
"UILanguageTag"="de-de"
"ShowDates"="ON"
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources\EnabledEditingLanguages]
"de-DE"=dword:00000001
"en-US"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources\LocalCache]
"RegionalAndLanguageSettingsAccount"=""
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Licensing]
"RetailDemo"=dword:00000000
"DeviceEntitlementsExist"=dword:00000000
"NextUserLicensingLicenseIds"=""
"NextUserLicensingLicensedUserIds"=""
"EligibleForExtendedGrace"=dword:00000001
"FirstCleanValidation"=dword:00000001
"RemoveOOBE"=dword:00000001
"1"=dword:00000015
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Licensing\CurrentSkuIdAggregationForApp]
"Access"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Excel"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"OneNote"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Outlook"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"PowerPoint"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Word"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Lync"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\osm]
"enablelogging"=dword:00000000
"EnableFileObfuscation"=dword:00000001
"EnableUpload"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\osm]
"EnableFileObfuscation"=dword:00000001
"Enablelogging"=dword:00000000
"EnableUpload"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\microsoft\office\16.0\osm\preventedapplications]
"accesssolution"=dword:00000001
"olksolution"=dword:00000001
"onenotesolution"=dword:00000001
"pptsolution"=dword:00000001
"projectsolution"=dword:00000001
"publishersolution"=dword:00000001
"visiosolution"=dword:00000001
"wdsolution"=dword:00000001
"xlsolution"=dword:00000001
[HKEY_CURRENT_USER\Software\Policies\microsoft\office\16.0\osm\preventedsolutiontypes]
"agave"=dword:00000001
"appaddins"=dword:00000001
"comaddins"=dword:00000001
"documentfiles"=dword:00000001
"templatefiles"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options]
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\General]
"HideNewOutlookToggle"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Registration]
"AcceptAllEulas"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\Common\UserInfo]
"Company"="DESKMODDER"
"UserName"="Darth Vader"
"UserInitials"="DV"
</File>
Die Aktivierung erfolgt per KMS auf einem vorhanden Firmen KMS-Server und die Office Tools werden aus dem Startmenü entfernt:
Code: Alles auswählen
<File path="C:\Windows\Setup\Scripts\unattend-02.cmd">
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:KHGM9
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:VMFTK
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:XQBR2
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:PG343
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:WFG99
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:DRTFM
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:BTDRB
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:6F7TH
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:GCVGB
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:H6HGR
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:TX3T2
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:VXRPM
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:R9GQV
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:XQBR2
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%programfiles%\Microsoft Office\root\Licenses16\ProPlus2024VL_KMS_Client_AE-ppd.xrm-ms"
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%programfiles%\Microsoft Office\root\Licenses16\ProPlus2024VL_KMS_Client_AE-ul.xrm-ms"
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%programfiles%\Microsoft Office\root\Licenses16\ProPlus2024VL_KMS_Client_AE-ul-oob.xrm-ms"
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript C:\Windows\System32\slmgr.vbs /ckms
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /sethst:kms.XXXXXXXXX.com
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /setprt:1688
TIMEOUT /T 10 /NOBREAK >nul
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /act
rmdir "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office Tools" /s /q
</File>
mein Office 2024 LTSC lasse ich vollautomatisch über die autounattend.xml installieren, aktivieren (.cmd) und auf meine Bedürfnisse anpassen (per Registry-Einträge).
Installation:
die Installation erfolgt über Winget mit --configure und einer angepassten Configuration.xml (ProPlus2024Volume.xml). Das funktioniert nur, wenn eine Internetverbindung während der Installation vorhanden ist, da die .xml auf einem eigenen FTP-Server liegt (müßte auch mit einer Fritz.Box gehen).
[code] <SynchronousCommand wcm:action="add">
<Order>12</Order>
<Description>Office</Description>
<CommandLine>cmd /c winget install --id "Microsoft.Office" --override "/configure https://www.XXXXXXXX.de\ftp\ProPlus2024Volume.xml"</CommandLine>
</SynchronousCommand>
[/code]
Auf dem Desktop möchte ich einen Shortcut haben für eine Verknüpfung zum Office Update:
[code] <File path="C:\Windows\Setup\Scripts\unattend-03.ps1">
$strTargetPath = "$env:CommonProgramFiles\microsoft shared\ClickToRun\OfficeC2RClient.exe"
$strLinkFile = "$env:USERPROFILE\Desktop\Office.lnk"
$shell = New-Object -ComObject WScript.Shell
$Shortcut = $shell.CreateShortcut($strLinkFile)
$Shortcut.TargetPath = $strTargetPath
$Shortcut.HotKey = "Ctrl+Shift+C"
$Shortcut.Arguments = "/update user"
# $lnk.Arguments =
# Set the window style (3=Maximized 7=Minimized 4=Normal)
$shortcut.WindowStyle = 3
$Shortcut.IconLocation = "$env:CommonProgramFiles\microsoft shared\ClickToRun\OfficeC2RClient.exe"
$Shortcut.Save()
</File>[/code]
für die Office Einstellungen werden diese Registry-Einträge vorgenommen. Es kommen keinerlei PopUps mehr, um z.B. die Privatsphäreneinstellungen zu akzeptieren. Theme entweder System oder Colored. Zum Speichern sind die alten Office-Formate voreingestellt (.xls, .ppt, .doc):
[code] <File path="C:\Windows\Setup\Scripts\unattend-01.reg">
Windows Registry Editor Version 5.00
;Office User Settings
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\word\options]
"defaultformat"="Doc"
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\word\options]
"defaultformat"="Doc"
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\options]
"defaultformat"=dword:00000038
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Excel\options]
"defaultformat"=dword:00000038
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\powerpoint\options]
"defaultformat"=dword:00000000
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
"ShowSuggestionDialog"=dword:00000002
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\powerpoint\options]
"defaultformat"=dword:00000000
"LastUILang"=dword:00000407
"EnableAccChecker"=dword:00000001
"FirstRun"=dword:00000000
"ShowSuggestionDialog"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common]
"PointerModeInitVersion"=dword:00000001
"OverridePointerMode"=dword:00000001
"SplashScreenLicense"=dword:00000006
"PrivacyDialogsDisabled"=dword:00000001
; System
"UI Theme"=dword:00000007
; Colored
;"UI Theme"=dword:00000006
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Common]
"PointerModeInitVersion"=dword:00000001
"OverridePointerMode"=dword:00000001
"SplashScreenLicense"=dword:00000006
"PrivacyDialogsDisabled"=dword:00000001
; System
"UI Theme"=dword:00000007
; Colored
;"UI Theme"=dword:00000006
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Privacy\SettingsStore\Anonymous]
"OptionalConnectedExperiencesNoticeVersion"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\ExperimentConfigs\Ecs]
"CountryCode"="std::wstring|DE"
"PerpetualLicenseInfo"="std::wstring|2024"
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\General]
"Xlstart"="XLSTART"
"Themes"="Themes"
"Templates"="Templates"
"Stationery"="Stationery"
"Startup"="STARTUP"
"Signatures"="Signatures"
"RecentFiles"="Recent"
"Queries"="Queries"
"Proof"="Proof"
"MyPictures"="My Pictures"
"MyDocuments"="My Documents"
"Favorites"="Favorites"
"Desktop"="Desktop"
"ApplicationData"="Application Data"
"AddIns"="AddIns"
"Actors"="Actors"
"NoTrack"=dword:00000001
"FirstRun"=dword:00000000
"FileFormatBallotBoxAppIDBootedOnce"=dword:00000001
"FileFormatBallotBoxTelemetryEventSent"=dword:00000001
"FileFormatBallotBoxTelemetryConfirmationEventSent"=dword:00000001
"FileFormatBallotBoxTelemetrySent"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity]
"TrustedSiteUrlForUserAgentVersionInfo"=""
"Version"=dword:00000001
"SignedOutOneAuthMigrationComplete"=dword:00000001
"Canary"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources]
"UIFallbackLanguages"="x-none;de-de"
"HelpLanguageTag"="de-de"
"PreferredEditingLanguage"="de-DE"
"PreviousPreferredEditingLanguage"="de-DE"
"WordChangeInstallLanguage"="No"
"WordMailChangeInstallLanguage"="No"
"XLChangeInstallLanguage"="No"
"PPTChangeInstallLanguage"="No"
"AccessChangeInstallLanguage"="No"
"OutlookChangeInstallLanguage"="No"
"PublisherChangeInstallLanguage"="No"
"ProjectChangeInstallLanguage"="No"
"OneNoteChangeInstallLanguage"="No"
"LangTuneUp"="OfficeCompleted"
"UISnapshotLanguages"=""
"HelpFallbackLanguages"="x-none;de-de"
"UILanguageTag"="de-de"
"ShowDates"="ON"
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources\EnabledEditingLanguages]
"de-DE"=dword:00000001
"en-US"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\LanguageResources\LocalCache]
"RegionalAndLanguageSettingsAccount"=""
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Licensing]
"RetailDemo"=dword:00000000
"DeviceEntitlementsExist"=dword:00000000
"NextUserLicensingLicenseIds"=""
"NextUserLicensingLicensedUserIds"=""
"EligibleForExtendedGrace"=dword:00000001
"FirstCleanValidation"=dword:00000001
"RemoveOOBE"=dword:00000001
"1"=dword:00000015
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Licensing\CurrentSkuIdAggregationForApp]
"Access"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Excel"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"OneNote"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Outlook"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"PowerPoint"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Word"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
"Lync"="{8D368FC1-9470-4BE2-8D66-90E836CBB051},"
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\osm]
"enablelogging"=dword:00000000
"EnableFileObfuscation"=dword:00000001
"EnableUpload"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\osm]
"EnableFileObfuscation"=dword:00000001
"Enablelogging"=dword:00000000
"EnableUpload"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\microsoft\office\16.0\osm\preventedapplications]
"accesssolution"=dword:00000001
"olksolution"=dword:00000001
"onenotesolution"=dword:00000001
"pptsolution"=dword:00000001
"projectsolution"=dword:00000001
"publishersolution"=dword:00000001
"visiosolution"=dword:00000001
"wdsolution"=dword:00000001
"xlsolution"=dword:00000001
[HKEY_CURRENT_USER\Software\Policies\microsoft\office\16.0\osm\preventedsolutiontypes]
"agave"=dword:00000001
"appaddins"=dword:00000001
"comaddins"=dword:00000001
"documentfiles"=dword:00000001
"templatefiles"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook]
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options]
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\General]
"HideNewOutlookToggle"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Registration]
"AcceptAllEulas"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\Common\UserInfo]
"Company"="DESKMODDER"
"UserName"="Darth Vader"
"UserInitials"="DV"
</File>[/code]
Die Aktivierung erfolgt per KMS auf einem vorhanden Firmen KMS-Server und die Office Tools werden aus dem Startmenü entfernt:
[code] <File path="C:\Windows\Setup\Scripts\unattend-02.cmd">
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:KHGM9
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:VMFTK
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:XQBR2
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:PG343
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:WFG99
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:DRTFM
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:BTDRB
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:6F7TH
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:GCVGB
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:H6HGR
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:TX3T2
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:VXRPM
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:R9GQV
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /unpkey:XQBR2
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%programfiles%\Microsoft Office\root\Licenses16\ProPlus2024VL_KMS_Client_AE-ppd.xrm-ms"
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%programfiles%\Microsoft Office\root\Licenses16\ProPlus2024VL_KMS_Client_AE-ul.xrm-ms"
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inslic:"%programfiles%\Microsoft Office\root\Licenses16\ProPlus2024VL_KMS_Client_AE-ul-oob.xrm-ms"
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript C:\Windows\System32\slmgr.vbs /ckms
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /sethst:kms.XXXXXXXXX.com
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /setprt:1688
TIMEOUT /T 10 /NOBREAK >nul
cscript "%programfiles%\Microsoft Office\Office16\ospp.vbs" /act
rmdir "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office Tools" /s /q
</File>[/code]