Change your Office 365 ProPlus update frequency as described here: https://bit.ly/2J80Wk0
Created
May 1, 2019 10:57
-
-
Save vinloo/dc0d5c4a0422c8aa7c785540c35f4683 to your computer and use it in GitHub Desktop.
Change your Office 365 ProPlus update frequency as described here: https://bit.ly/2J80Wk0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo OFF | |
| echo. | |
| set m="http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60" | |
| set s="http://officecdn.microsoft.com/pr/7ffbc6bf-bc32-4f92-8982-f9dd17fd3114" | |
| set mt="http://officecdn.microsoft.com/pr/64256afe-f5d9-4f86-8936-8840a6a4f5be" | |
| set st="http://officecdn.microsoft.com/pr/b8f9b850-328d-4355-9145-c59439a0c4cf" | |
| echo Select one of the following update channels: | |
| echo 1: Monthly Targeted (fastest updates) | |
| echo 2: Monthly | |
| echo 3: Semi-Annual Targeted | |
| echo 4: Semi-Annual (slowest updates) | |
| :Input | |
| echo. | |
| set /P channel=Please enter the number of the channel you want: | |
| if %channel% GEQ 1 if %channel% LEQ 4 goto ValidNumber | |
| echo. | |
| echo ERROR: %channel% is not a valid number | |
| goto Input | |
| :ValidNumber | |
| echo. | |
| echo Setting update channel... | |
| if %channel%==1 set channel=%mt% | |
| if %channel%==2 set channel=%m% | |
| if %channel%==3 set channel=%s% | |
| if %channel%==4 set channel=%st% | |
| setlocal | |
| reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration\ /v CDNBaseUrl | |
| if %errorlevel%==0 (goto SwitchChannel) else (goto End) | |
| :SwitchChannel | |
| reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v CDNBaseUrl /t REG_SZ /d %channel% /f | |
| reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v UpdateUrl /f | |
| reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v UpdateToVersion /f | |
| reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Updates /v UpdateToVersion /f | |
| reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Office\16.0\Common\OfficeUpdate\ /f | |
| :End | |
| Endlocal | |
| echo Update channel set! | |
| echo. | |
| echo Press any key to exit... | |
| pause >nul | |
| exit /B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment