Win32operatingsystem Result Not Found Via Omi New Portable Here
Title
Troubleshooting: "Win32_OperatingSystem result not found" When Querying via OMI New
2. Use OMI’s exec to Run a WMI Query
Instead of omi new, use the underlying WQL interface:
omicli exec root/cimv2 "SELECT * FROM Win32_OperatingSystem"
4. Use a Different Class
If you only need OS name and version, Win32_ComputerSystem also provides SystemType and Manufacturer, but not OS version. For OS version, Win32_OperatingSystem is irreplaceable.
Step 5: Examine OMI Logs on the Windows Target
OMI logs are located in: %PROGRAMDATA%\omi\var\log\omi.log
Look for entries containing: win32operatingsystem result not found via omi new
Result not foundWin32_OperatingSystemAccess deniedNamespace not found
Common log snippet:
[error] [wmi_provider.c:123] Query for Win32_OperatingSystem returned no instances. User: DOMAIN\user. Provider error: 0x80041032
0x80041032 = WBEM_E_NOT_FOUND (class not in namespace) or 0x80041010 (access denied).
3. Upgrade OMI on Both Sides
Outdated versions of OMI (pre-1.6.0) had bugs mapping Windows classes. Upgrade to OMI 1.6.8-1 or later. Step 5: Examine OMI Logs on the Windows
- Windows OMI: Download from Microsoft Open Specifications.
- Linux OMI client:
apt-get install omi(Microsoft repo).
The omi new Command
In the OMI ecosystem (and its forks), omi new is a subcommand used to create a new instance of a CIM class. However, the most common confusion arises when administrators attempt to enumerate instances rather than create one.
Typical problematic syntax:
omi new root/cimv2 Win32OperatingSystem
Or, via the OMI client library:
// C/C++ pseudo-code
CIMInstance *inst = omi_new("root/cimv2", "Win32OperatingSystem", NULL);
When you see the error result not found, the OMI client is signaling that the provider for the target class either:
- Does not exist on the target machine.
- Is not reachable due to permissions or firewall.
- Returned an empty set because the query logic was misinterpreted.
What is Win32_OperatingSystem?
In WMI, Win32_OperatingSystem is a core class that provides information about the operating system — version, last boot time, serial number, architecture, etc. Any management tool relying on OS discovery uses this class.