cannot open Notes in OWA 2007

Issue: customer reported not being able to open notes from OWA 2007, using Internet Explorer
Synopsis: Customer creates a note in outlook 2007. tries to open the notes using external servername from Internet explorer. The error below is displayed, trying to access the note
Exception type: System.Web.HttpCompileException
Exception message: c:Program FilesMicrosoftExchange ServerClientAccessOwaformsCommVaultreadmessage.aspx(35): error CS0154: The property or indexer ‘Microsoft.Exchange.Clients.Owa.Core.UserOptions.ComposeFontName’ cannot be used in this context because it lacks the get accessor
Note that Customer can open this note if using Chrome or Firefox browsers respectively
Workaround Solutions:
The external servername sends traffic through the ISA server. We are trying to figure out a way to resolve this
workaround solution A:
use firefox or Chrome browser
Workaround solution B:
if customer is using Internet explorer, advise customer to use https://externalservername/owa to access webmail
Note: This issue applies to OWA 2007(webmail) users

Assign send-as, receive-as and administer info store permissions

Assigning send-as, receive-as, and administer information store permissions to a user account, for eg besadmin
 
use this powershell script:

get-mailboxserver “servername” | add-adpermission -user besadmin -accessrights GenericRead, GenericWrite -extendedrights Send-As, Receive-As, ms-Exch-Store-Admin

Junk Mail Error Message- Cannot add to the server Junk E-mail List

Issue: User reported this error message while opening Outlook
 
Error Message: Cannot add to the server Junk E-mail List, you are over the size allowed on the server.  The Junk E-mail Filter on the server will be disabled until your Junk E-mail Lists have been reduced to the size allowed on the server.
 
woul you like to manage your Junk E-mail List now?
 
Resolution:
 
get to a command prompt by Clicking on start, run, type cmd:
 
Outlook /cleanprofile
 
reboot computer
 

apply activesync policy to all exchange users

Use this powershell code to apply an activesync policy to all exchange users:
 
 Get-Mailbox -resultsize unlimited | Set-CASMailbox -ActiveSyncMailboxPolicy(Get-ActiveSyncMailboxPolicy “Policy Name”).Identity
 
 
 
To apply to a particular user:
 
set-casmailbox username -ActiveSyncMailboxPolicy(Get-ActiveSyncMailboxPolicy “Enterprise Exchange ActiveSync Policy”).identity

Working with Disconnected Mailboxes using powershell

To display mailboxes that are disconnected use the following command.
Get-MailboxStatistics -Server <server> | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate
Replace <server> with the name of your mailbox server.
This gives a list of the disconnected mailboxes.
To reconnect you use the command below
Connect-mailbox –database <mailbox database name> –Identity <disconnected mailbox name> –User <User to connect to>
 The command below gives list of disconnected mailboxes on a server called Server1
Get-MailboxStatistics -Server “Server1” | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate

some message tracking powershell commands for hub transport servers

some message tracking powershell commands for hub transport servers
Set-TransportServer “servername” –MessageTrackingLogMaxDirectorySize 2GB
Set-TransportServer E2K7 –MessageTrackingLogMaxFileSize 5MB
Set-TransportServer SERVERNAME –MessageTrackingLogMaxAge DD.HH:MM:SS
for eg Set-TransportServer E2K7 –MessageTrackingLogMaxAge 15.00:00:00
get-messagetrackinglog -Server “servername” -Start “1/14/2009 11:20:00 AM” -End “2/10/2009 11:20:00 AM” -resultsize unlimited | select timestamp, eventid, source, messagesubject, sender, internalmessageid, {_.recipients}, sourcecontext | export-csv c:msgtrakcsv

creating report of all exchange mailboxes with associated information

steps to create report of all exchange user mailboxes with associated Names, server names, departments and title
 
(Note, you must have at least exchange recipient management rights to do this)
1. Open Exchange management shell
2. Run the Get mailbox powershell command(see below)
3. Run the Get-user command (see pshell command below). Note that this can take up to 10-15minutes to complete
4. Open MS Access and open the text files to a database and import the text files to respective tables in same database
5. While importing, use fixed width. Name the fields. Choose no primary key
6. After importing, create join between required tables
7. Run query on joined tables

get-mailbox  -ResultSize Unlimited  | ft SamAccountName, DisplayName, ServerName | out-file c:all-EMTmboxes060309.txt
get-user  -ResultSize Unlimited | where-object{$_.RecipientType –eq “UserMailbox”}| ft SamAccountName, FirstName, LastName, Department, Title | out-file c:allusermailboxes060309.txt

How to recover data from an old OST File in Outlook 2007

Issue: User lost calendar data from previous year and wants to recover lost data from an old OST file homed on a different computer
Steps to recover are as follows:
  • Request full access to the mailbox. An Exchange administrator will need to do this
  • Login to network. Open Outlook and create new profile with user information. Do not use auto discovery during setup. Configure manually
  • During profile setup, you will need to have the user’s server name. click on more settings, advanced settings, offline folder settings, click on browse and point to the ost file you need data restored from and click ok
  • Open outlook 2007 and choose the user’s profile you just created
  • You may get this warning message “Outlook is using an old copy of ost file, delete , close outlook and a new one will be created”. Click Ok and Click on File, Work Offline
  • Now export to .PST file by Clicking on File, Import/Export, export to a file, choose personal folder file, select desired folder to export and name the pst file and location
  • Close Outlook, delete the old .ost file. Open outlook, import the .pst file to the user’s folder on exchange server
  • Congratulations. You are done!

set managed folder mailbox policy on server mailboxes

The pshell command below will apply deleted items retention policy on all the mailboxes homed on a server. Please note that this policy is set on exchange organization level
 
 Get-Mailbox -Server “servername” -ResultSize unlimited | Set-Mailbox -ManagedFolderMailboxPolicy “Deleted Items Retention Policy” -ManagedFolderMailboxPolicyAllowed
 
use this pshell command to manually start the MRM service
 
Start-ManagedFolderAssistant -identity “servername” 
To set the schedule for the managed folder policy to run,
 
1. From exchange mgmt console, go to server configuration, click on mailbox, right click on your server, and click on properties
2. Click on messaging records management tab
3. Click on customize and choose desired schedule