Atera Agent Dashboard showing N/A for everything.

dgoettler
dgoettler Member Posts: 2
edited December 2023 in Remote Monitoring

I ran into an issue today where the Atera agent dashboard was showing N/A for all the fields. Turns out it was an issue with the computer. Imaging really wasn't an option. Here is what I found I hope this helps. Cheers!

Atera Dashboard wasn't populating data. Showing N/A for each item.  Also, get this error when running wmi commands.

Get-WmiObject Win32_BIOS

Get-WmiObject : Invalid class "Win32_BIOS"

Resolution: This came from working with ChatGPT BTW.

Issue Description:
Error encountered when running PowerShell commands to query WMI classes Win32_BIOS and Win32_ComputerSystem.
Error Message: Invalid class "Win32_BIOS" and Invalid class "Win32_ComputerSystem".
Error Code: 0x80041010
Initial Troubleshooting Steps:
Checked WMI Service: Ensured that the WMI service was running on the computer.
Tested WMI Queries: Ran the PowerShell commands manually (Get-WmiObject Win32_BIOS and Get-WmiObject Win32_ComputerSystem) and confirmed that they were failing.
Checked WMI Repository State: Ran the command winmgmt /salvagerepository to check for WMI repository consistency. The repository was reported as consistent.
Advanced Troubleshooting Steps:
Navigated to WMI Directory: Changed directory to %windir%\system32\wbem.
Re-Registered WMI Components: Ran for %i in (.dll) do RegSvr32 -s %i to silently register all WMI DLLs.
Attempted to Register WMI Executables: Ran for %i in (
.exe) do %i /RegServer. Some executables accepted the /RegServer flag, but some did not. The operation was generally to ensure that all WMI-related executables were correctly registered.
Recompiled MOF Files: Ran mofcomp CIMWin32.mof to recompile the MOF files, which contain definitions for WMI classes.
Verification:
Ran Get-WmiObject Win32_BIOS and Get-WmiObject Win32_ComputerSystem again. These commands executed successfully, confirming that the issue was resolved.


Comments

  • dyoder
    dyoder Member Posts: 52 ✭✭✭

    @dgoettler I've run into this issue countless times! I have a script I use to fix this and have it attached to a routinely running IT Automation policy to make sure WMI stays running on all my endpoints. The script is called Fix-WMI and can be found in Atera's Shared Script Library.

    I don't know why this happens, but occasionally scripts uploaded to Atera's library get a ? character added as the first character on line 1 of the script - just clone the script and edit it to remove the ? and it should work fine (@nina). I'm sure it has to do with BOM encoding or something, but regardless, it's an annoying issue.

  • dgoettler
    dgoettler Member Posts: 2

    Thank you so much! This will be a great addition to my arsenal.

  • nina
    nina Internal Posts: 428 ✭✭✭✭✭

    @dgoettler and @dyoder - Thank you for this! I'm sure this will help a number of our users!

  • brendan.richman
    brendan.richman Member Posts: 15

    Are you not going to fix this and stop it from happening then?

  • nina
    nina Internal Posts: 428 ✭✭✭✭✭

    I have alerted the teams about it. I do not have an ETA or confirmation if anything is planned for this quarter or next.