Category: Exchange 2007
Working with message tracking logs
use this powershell command to get message tracking logs from a hub transport server, with start date of 1/13/2009 and end date of 2/13/09 at 11:20am respectively. this will also export to csv file on root of C:drive
get-messagetrackinglog -Server “servername”
-Start “1/13/2009 11:20:00 AM” -End “2/13/2009 11:20:00 AM” -resultsize unlimited
| select timestamp, eventid, source, messagesubject, sender, internalmessageid, {_.recipients}, sourcecontext | export-csv c:msgtrak.csv
more examples:
Get-MessageTrackingLog -sender chuck@chuck.com
Get-MessageTrackingLog -sender “obi@obi.com” -eventID RECEIVE
Get-MessageTrackingLog -sender “barb@domain.com” -eventID DELIVER
Get-MessageTrackingLog -sender “erik@domain.com” -eventID DELIVER -Start “10/01/2009 9:00AM” -End “10/03/2009 5:00PM”
formatting the output
Get-MessageTrackingLog -sender obi@domain.com -eventID DELIVER -Start “10/01/2009 9:00AM” -End “10/03/2009 5:00PM” | Select timestamp,recipients,messagesubject
Get-MessageTrackingLog -sender “Mike@domain.com” -eventID DELIVER -Start “10/01/2009 9:00AM” -End “10/03/2009 5:00PM” -ResultSize 25
Configure Sync’em for Exchange 2007 Access
How to rebuild Full-Text Index Catalog for Exchange server
customer reports not being able to open attachments via webmail
how to turn on diagnostic logging of services in exchange 2007
customer couldn’t find spell check under options in OWA
steps to create shared mailbox for customers
customers should use sharepoint as the preferred method for for shared and collaborative calendaring.
Update file distribution service on CAS servers with OAB
fixing cas-mailboxes running in lite Mode for web experience
A funny Exchange Cmdlet, and how to fix it: Set-CASMailbox
In Exchange 2007 you can implement Outlook Web Access segmentation both server-side and client-side. The server-side segmentation can be done using both the power of the Exchange Management Shell, and the Exchange Management Console. To disable particular features, you will need the set-casmailbox to do so. Please read on
Issue: User can only run Outlook web access(owa) in lite version regardless of browser used
Solution: I have to use the EMS cmdlet Set-CASMailbox, as is stated in Technet “The Set-CASMailbox cmdlet sets client access-related attributes for Microsoft Exchange ActiveSync, Microsoft Office Outlook Web Access, Post Office Protocol version 3 (POP3), and Internet Message Access Protocol version 4rev1 (IMAP4) for a specified user.”
When running the cmdlet Get-CASMailbox ivancriekinge | fl, I can see that by default all features are enabled:
So, by running the following cmdlet I believe I’m disabling the ability to change my password using Outlook Web Access:Set-CasMailbox ivancriekinge -OWAChangePasswordEnabled:$False
But, it seems that running the specified line, it seems that all features are disabled…
And if you would on the other hand explicitely enable one feature, the result would be the same, all other features would be set to disabled 🙂
Solution = AdsiEdit…
When you check the properties of the mailbox using AdsiEdit, you can see that by running the cmdlet specified above, Exchange has changed the value of the attribute msExchMailboxFolderSet. By default this value is not set for a user, when all features are disabled, the value gets the value of 0.
If we change this value again, the default value would be reinstated.
In order to disable one feature, it’s very useful to first use AdsiEdit, or the Shell and set the value of MsExchMailboxFolderSet to 2147483647. And then, use the Set-CASMailbox cmdlet to disable the one feature wanted.
To use the shell, use the following commands:
To reset the value of the parameter to the default <not set>, just run the following line:
Set-QADUser ‘<domainname>/<OU>/username’ -objectattributes @{msExchMailboxFolderSet=$Null}
To set the value of all properties (starting with OWA) to $True, just run the following:
Set-QADUser ‘<domainname>/<OU>/username’ -objectattributes @{msExchMailboxFolderSet=2147483647}
Value of 2080374783 sets all to true except for ability to change password over the web
Reference:
Ilse, http://www.Proexchange.be, retrieved on November 13, 2008