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.
EXAMPLES
EXAMPLE 1
Get-IntuneODJConnectorServiceEventLog
Retrieves and parses the event logs for the Microsoft Intune ODJ Connector Service, returning structured objects with parsed properties.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
INPUTS
OUTPUTS
NOTES
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.