{"id":658,"date":"2009-05-17T13:19:53","date_gmt":"2009-05-17T11:19:53","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=658"},"modified":"2009-07-12T19:37:15","modified_gmt":"2009-07-12T17:37:15","slug":"auditing-mailbox-access","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=658","title":{"rendered":"Auditing Mailbox Access"},"content":{"rendered":"<p>By default Exchange 2007 only log logons to the server, not to which mailbox. With the following cmdlet we can enable mailbox access auditing on our mailbox servers.<\/p>\n<p><code>Set-EventLogLevel \u00e2\u20ac\u0153MSExchangeIS\\9000 Private\\Logons\u00e2\u20ac\u009d \u00e2\u20ac\u201clevel low<\/code><\/p>\n<p>Note that there might be times, special with older Outlook clients) when other users will access other mailboxes to see details about for example calendar appointments. So a login event can be a simple check in the calendar. When I booked a meeting between two users, with Outlook 2007, I did not notice a extra security extra.<br \/>\nWhen we have enable audit of mailbox access we can use a collection rule in Operations Manager to collect them and store them in the data warehouse. I will use event IT 1009 in this example, event ID 1009 is an indication that the specified user account logged into the specified mailbox.<\/p>\n<p>Event ID 1016 <img decoding=\"async\" alt=\"\" src=\"http:\/\/contoso.se\/files\/exchangeaudit02.JPG\"\/> <\/p>\n<p>Start by creating a new rule, authoring\/rules\/create a rule\/collection rule\/NT event log. The collection rule will only collect, not generate any alerts. In my example I used Windows Server 2008 Computer as target. I created the rule disable as default. Then override and enable it for a group including a couple of Exchange mailbox server computer objects.<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/contoso.se\/files\/exchangeaudit01.JPG\"\/><\/p>\n<p>Event ID 1016 is also interesting. When a user access a mailbox another mailbox, then its primary mailbox, you will see a event with ID 1016.<br \/>\nThe next step is to create a report. You can use the generic Custom Event report to create a linked report showing all the events. Run the Custom Event report and select your windows server 2008 computers as objects, filter the report for example in my example Event ID equals 1009. Note that you have to check its checkbox for every report field you want to include. If you check any checkboxes you will get a empty report.<\/p>\n<p>If you don\u00e2\u20ac\u2122t like the default event report you can author a new in Visual Studio. You can read my guide about that <a href=\"http:\/\/contoso.se\/blog\/?p=398\">here<\/a> and use the following query when building the data set in Visual Studio. In this query I have two parameters, keyword01 and keyword02. That is two parameters that the report operator can input as words to search for in the event description, for example a username and a mailbox name.<\/p>\n<p><code>SELECT Event.vEvent.DateTime, vEventPublisher.EventPublisherName AS 'EventSource', vEventLoggingComputer.ComputerName AS 'Computer',<br \/>\nEvent.vEvent.EventDisplayNumber AS 'EventID', vEventChannel.EventChannelTitle, Event.vEventDetail.RenderedDescription AS 'EventDescription'<br \/>\nFROM Event.vEvent LEFT OUTER JOIN<br \/>\nvEventCategory ON Event.vEvent.EventCategoryRowId = vEventCategory.EventCategoryRowId LEFT OUTER JOIN<br \/>\nvEventPublisher ON Event.vEvent.EventPublisherRowId = vEventPublisher.EventPublisherRowId LEFT OUTER JOIN<br \/>\nvEventLoggingComputer ON Event.vEvent.LoggingComputerRowId = vEventLoggingComputer.EventLoggingComputerRowId LEFT OUTER JOIN<br \/>\nvEventLevel ON Event.vEvent.EventLevelId = vEventLevel.EventLevelId LEFT OUTER JOIN<br \/>\nvEventChannel ON Event.vEvent.EventChannelRowId = vEventChannel.EventChannelRowId LEFT OUTER JOIN<br \/>\nEvent.vEventDetail ON Event.vEvent.EventOriginId = Event.vEventDetail.EventOriginId<br \/>\nWHERE (Event.vEvent.EventDisplayNumber = '1009' OR<br \/>\nEvent.vEvent.EventDisplayNumber = '1016') AND (Event.vEventDetail.RenderedDescription LIKE '%' + @keyword01 + '%') AND<br \/>\n(Event.vEventDetail.RenderedDescription LIKE '%' + @keyword02 + '%')<br \/>\nORDER BY Event.vEvent.DateTime DESC<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default Exchange 2007 only log logons to the server, not to which mailbox. With the following cmdlet we can enable mailbox access auditing on our mailbox servers. Set-EventLogLevel \u00e2\u20ac\u0153MSExchangeIS\\9000 Private\\Logons\u00e2\u20ac\u009d \u00e2\u20ac\u201clevel low Note that there might be times, special with older Outlook clients) when other users will access other mailboxes to see details about &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=658\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/658"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=658"}],"version-history":[{"count":14,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions"}],"predecessor-version":[{"id":813,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions\/813"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}