This function uses the Get-WinEvent cmdlet to filter and retrieve specific event logs related
to the Microsoft Intune ODJ (Offline Domain Join) Connector Service.
It parses the event messages
to extract structured information such as ActivityId, DeviceId, DeviceName, and other diagnostic data.
Intune ODJ Connector Service is responsible for creating Windows computer objects in Active Directory
during the device enrollment process via Windows Autopilot.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Must be executed on the server where the Microsoft Intune ODJ Connector Service is installed to access the relevant event logs.
Requires local administrator privileges to read the event logs.
Automatically resolves UserID to Active Directory account information (User, gMSA, Computer) when the ActiveDirectory module is available.