top of page
  • Yazarın fotoğrafıS.Ergül

Changing Office 365 Update Channel Via Powershell

Hi Again Folks, Today we will learn how to check office 365 Update Channel and how to change it to Current Channel. First of all how we find which channel update we already have it.Simplest way is to find that , you can use regedit on below

Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration -Name "CDNBaseUrl"

After getting current CDNBase Url, you can change to Office 365 Current Version Update Channel with on below Channels that your requeired version of Office 365.


Monthly Enterprise Channel

CDNBaseUrl = http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6


Current Channel

CDNBaseUrl = http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60


Current Channel (Preview)

CDNBaseUrl = http://officecdn.microsoft.com/pr/64256afe-f5d9-4f86-8936-8840a6a4f5be


Semi-Annual Enterprise Channel

CDNBaseUrl = http://officecdn.microsoft.com/pr/7ffbc6bf-bc32-4f92-8982-f9dd17fd3114


Semi-Annual Enterprise Channel (Preview)

CDNBaseUrl = http://officecdn.microsoft.com/pr/b8f9b850-328d-4355-9145-c59439a0c4cf


Beta Channel

CDNBaseUrl = http://officecdn.microsoft.com/pr/5440fd1f-7ecb-4221-8110-145efaa6372f


<#
##########################################################
#Script Description: it is used to change office 365 update channel
#Author: Selcuk ERGUL
#Date Created: 30/09/2021
#Version: V1.0 - First relase.
#>	
$UpdateChannel = "http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60"
$CTRPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
$CDNBaseUrl = Get-ItemProperty -Path $CTRPath -Name "CDNBaseUrl" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty "CDNBaseUrl"
if ($CDNBaseUrl -ne $null) {
    if ($CDNBaseUrl -notmatch $UpdateChannel) {
        # Set new update channel
        Set-ItemProperty -Path $CTRPath -Name "CDNBaseUrl" -Value $UpdateChannel -Force
		if($?){write-output "CDNBaseUrl has been changed as Current Channel"}
		else {write-output "CDNBaseUrl has not been changed as Current Channel"}
        # Trigger hardware inventory
        Invoke-WmiMethod -Namespace "root\ccm" -Class "SMS_Client" -Name "TriggerSchedule" -ArgumentList "{00000000-0000-0000-0000-000000000001}"
    }
	else
	{write-host "update channel is already as Current Channel and CDNBaseUrl is $CDNBaseUrl"}
}
else
{write-host "CND Base Url registery key does not exsist."}


5.170 görüntüleme0 yorum

Son Yazılar

Hepsini Gör
Post: Blog2_Post
bottom of page