ScriptsObject WinEventLogGetLastErrorVersion: v4 (Stable)GetLastError GetLastError() As Integer Retrieve the last error code.