Wednesday, February 9, 2011

Exchange Auditing log for Mailbox access

One of the new features that service pack 2 of Exchange 2007 server brings is the ability to audit mailbox access at database level.
 
Here is how to enable and view auditing log for mailbox access:
 
 
If you run Exchange 2010 SP1, you can enable auditing log for mailbox access on individual mailbox.
To learn more, please visit Microsoft Technet link below:
 
 
 

Tuesday, February 8, 2011

How to Export LCS user list

This applies to LCS 2005sp1 environments but should also work on OCS2007 environments.

The challenge was to generate a list of LCS enabled users that were not disabled. I have a WMI query that will generate a list of LCS users, but I really wanted to be able to filter out the disabled users.

 

Install Powershell 1.0 or later on LCS server

 

Get-WmiObject msft_sipesusersetting -filter "Enabled = true" | Select-Object DisplayName >LCSuserslist.txt

 

As I had some other needs at the time, I added the telephone information as well to the query. Using get-member you can find a number of other different pieces of useful information to gather as well.

A lot of the 'engine' on how/where to get this information I found here and a nod to Eric Woodford for helping with the only enabled users filter.

 

# NAME: export-activeLCSuser.ps1
#
#
# COMMENT: Requires Quest Active Directory Extension 1.1
#

# Get date for file name
$day = Get-Date -UFormat "%Y%m%d"

Get-QADUser -SizeLimit 0 -LDAPFilter '(&(msRTCSIP-UserEnabled=TRUE)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))' -IncludedProperties 'msRTCSIP-Line' | Select-Object displayName, msRTCSIP-Line, telephoneNumber, Mobile | Export-Csv -Path .\$day-LCSuser.csv