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


Current Channel


Current Channel (Preview)


Semi-Annual Enterprise Channel


Semi-Annual Enterprise Channel (Preview)


Beta Channel


<#
##########################################################
#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."}


8.127 görüntüleme0 yorum

Son Yazılar

Hepsini Gör

Comments


Post: Blog2_Post
bottom of page