SCCM current branch: Office 365 Pro Plus Upgrades Error 0x87D0024A
Hallo zusammen,
in Kunden SCCM Umgebungen sehe ich sehr häufig eine Unmenge an unterschiedlichen Office 365 Pro Plus Versionen. Schaue ich weiter sind diese oft auch historisch bedingt in unterschiedliche Upgrade Kanäle konfiguriert.
Standardisiert werden können die Upgrade Kanäle recht einfach über "”configuration baselines”, an dieser Stelle nur ein Verweis:
https://nhogarth.net/2017/02/07/changing-office-365-update-channel-with-configmgr-1610/
Leider schlägt die Office 365 Pro Plus Upgrade Verteilung über SCCM aber auch nach der Änderung häufig fehl mit folgendem Fehler in der Updateshandler.log:
CBundledUpdate — Failed to download update Error = 0x87d0024a
Nach einiger Fehleranalyse stellte sich heraus das durch fehlerhafte ApiClient.dll Versionen im Ordner C:\Program Files\Common Files\Microsoft Shared\ClickToRun benötigte Upgrade Klassen in der Click-2-Run Architektur defekt sind.
Beheben lässt sich dies wie folgt:
- Überschreiben der aktuellen ApiClient.dll Datei von einem funktionierenden Client (Upgrades lassen sich verteilen) über ein SCCM Paket
- Neu-Registrierung der benötigten COM Objekle / Klassen über folgendes Powershell Skript:
# Remove the COM+ Application which was hosting the UpdateNotify.Object
Write-Host "Remove the OfficeC2RCom COM+ App if exists"
$comCatalog = New-Object -ComObject COMAdmin.COMAdminCatalog
$appColl = $comCatalog.GetCollection("Applications")
$appColl.Populate()
foreach($app in $appColl)
{
if ($app.Name -eq "OfficeC2RCom")
{
$appColl.Remove($index)
$appColl.SaveChanges()
}
$index++
}
# Create a COM+ application to host UpdateNotify.Object
$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog
$apps = $comAdmin.GetCollection("Applications")
$apps.Populate();$newComPackageName = "OfficeC2RCom"
$app = $apps | Where-Object {$_.Name -eq $newComPackageName}
if ($app)
{
# OfficeC2RCom app already exists. Output some info about it
Write-Host ""
$appname = $app.Value("Name")
"This COM+ Application already exists : $appname"
Write-Host ""
"ID: " + $app.Value("ID")
"Identity: " + $app.Value("Identity")
"ApplicationDirectory: " + $app.Value("ApplicationDirectory")
"ConcurrentApps:" + $app.Value("ConcurrentApps")
"RecycleCallLimit:" + $app.Value("RecycleCallLimit")
"Activation:" + $app.Value("Activation")
"ApplicationAccessChecksEnabled:" + $app.Value("ApplicationAccessChecksEnabled")
Write-Host ""
}
Else
{
# OfficeC2RCom app doesn't exist, creat it
# Add the App
Write-Host "Adding OfficeC2RCom COM+ Application..."
Try
{
$app = $apps.Add()
$app.Value("Name") = $newComPackageName
$app.Value("Identity") = "NT AUTHORITY\LocalService"
$app.Value("ApplicationAccessChecksEnabled") = 1
$app.Value("ID") = "{F6B836D9-AF6A-4D05-9A19-E906A0F34770}"
$saveChangesResult = $apps.SaveChanges()
"Results of the Apps SaveChanges operation : $saveChangesResult"
$appid = $app.Value("ID")
# Adding roles
Write-Host "Adding Administrator role to $newComPackageName"
$roles = $apps.GetCollection("Roles", $app.Key)
$roles.Populate()
$role = $roles.Add()
$role.Value("Name") = "Administrator"
$saveChangesResult = $roles.SaveChanges()
"Results of the Roles SaveChanges operation : $saveChangesResult"
# Get the localized string of the Builtin\Administrators
$id = [System.Security.Principal.WellKnownSidType]::BuiltinAdministratorsSid
$Account = New-Object System.Security.Principal.SecurityIdentifier($id, $null)
$localizedAdministrators = $Account.Translate([System.Security.Principal.NTAccount]).Value
"Results of the localized administrators string : $localizedAdministrators"
# Adding BUILTIN\Administrators to the Administrator Role
$users = $roles.GetCollection("UsersInRole", $role.Key)
$users.Populate()
$user = $users.Add()
$user.Value("User") = $localizedAdministrators
$saveChangesResult = $users.SaveChanges()
"Results of the Users SaveChanges operation : $saveChangesResult"
}
catch
{
Write-Host "Failed to add OfficeC2RCom as COM+ application." -ForegroundColor White -BackgroundColor Red
exit
}
Write-Host "Successfully added COM+ application: $newComPackageName, id: $appid" -ForegroundColor Blue -BackgroundColor Green
}
# Adding the UpdateNotify.Object as the component of OfficeC2RCom
$comps = $apps.GetCollection("Components", $app.Key)
$comps.Populate()
$newCompName = "UpdateNotify.Object.1"
$comp = $comps | Where-Object {$_.Name -eq "UpdateNotify.Object.1"}
Tipp: Verteilen lassen sich Powershell Skripte ab SCCM 1610 sehr schön über das Scripts Feature:
if ($comp)
{
"The $newCompName already exists!"
}
Else
{
Try
{
$comAdmin.ImportComponent($newComPackageName, $NewCompName)
}
catch
{
Write-Host "Failed to add $newCompName to $newComPackageName" -ForegroundColor White -BackgroundColor Red
exit
}
Write-Host "Successfully added $newCompName to $newComPackageName" -ForegroundColor Blue -BackgroundColor Green
}
- Erstellt am .
- Aufrufe: 845