Forum Discussion
Server Manager problem: Online - Data retrieval failures occurred
#fix servermanager events
$VerbosePreference = 'SilentlyContinue';
$delete = $true;
$backup = $true;
$backupRoot = "c:\temp";
$code45 = "Failure opening metadata of the owning provider for channel";
$code46 = "Generic failure querying the localized name for channel";
$rkey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels";
if ($backup) { REG EXPORT $rkey "$backupRoot\channels.reg" /y }
$slogs = Get-WinEvent Microsoft-Windows-ServerManager-MgmtProvider/Operational | Where-Object Id -In 45, 46 | Select-Object message -Unique;
if ($null -ne $slogs) {
$smessage = $slogs.message;
$smessage | ForEach-Object {
if ($_ -match $code45 -or $_ -match $code46) {
$eventId = $_.Split(":").Split("[")[1].Trim();
$finalkey = "$rkey\$eventId";
$targetreg = $eventId -replace '/', '-';
$finalfile = "$backupRoot\$targetreg.reg";
if ($backup) { REG EXPORT $finalkey $finalfile /y }
if ($delete) { REG DELETE $finalkey /f }
}
}
#Restart-Service EventLog -Force;
restart-computer -force
}
- Karl-WEAug 25, 2024MVP
Great news everyone. I am seeing this one fixed after in-place upgrade of Azure Stack HCI 22H2 to 23H2
Azure Stack HCI 22H2 clustered nodes are affected by this, same as Windows Server 2022 clustered nodes
Hope that this fix could be backported.
Please leave me like if you want to see this one fixed in Windows Server 2022, too.
- DB2024Aug 26, 2024Copper ContributorYes, please fix it in Server 2022. It's going to be around as a customer OS for a while yet.
- wrecklessw1Dec 06, 2022Copper Contributor
steve-down the script will backup and delete any key(s) found to cause an issue. i found this works on all server version server managers 100% of the time.
- PGColunaDec 08, 2022Copper ContributorHi to all
My environment are two server 2022 with Exchange 2019 installed in a DAG.
I solved the problem with:
https://blog.expta.com/2022/11/fix-for-online-data-retrieval-failures.html
I hope this helps someone- wrecklessw1Dec 09, 2022Copper ContributorI have a GPO which raises this already. The errors typically occur when roles are removed or inplace upgrades occur. New installs should consider default WinRM params as needed. Inplace upgrades will add/remove events that may no longer be relevent, same with roles/features.
- MvicarioSep 05, 2023Copper Contributor
I have the same issue Environment: 2 node win server 2022 with cluster and sql 2022 alway on mode . I solved removing Antivirus and also win defender. I tried on 2 clean environment with same servers infrastructure and every time the solution is the same....No AV or defender installed.