Windows WMI organizes classes into namespaces. Win32OperatingSystem resides strictly in root\cimv2 . If your OMI command or script specifies root\default , root\wmi , or any other namespace, the result will be empty.
winmgmt /salvagerepository winmgmt /resetrepository
sc query omi