O-Xchange Notes from the Field!

Tuesday, October 23, 2012

Can't find disconnected or deleted mailboxes

Can't find disconnected or deleted mailboxes ?
 
Use this to check your databases:

Step 1:
Cleans all databases in the specific store

Get-Mailboxdatabase | Where{ $_.Server –eq “<servername>”} | clean-MailboxDatabase 
Step 2:
Get a list of mailboxes in disabled state after cleaning the databases in Step 1

Get-MailboxStatistics -Database <DatabaseName> | Where { $_.DisconnectReason -eq "Disabled" } | Format-List LegacyDN, DisplayName, MailboxGUID, DisconnectReason

How-To Add an Additional Mailbox in Outlook 2010

How-To Add an Additional Mailbox in Outlook 2010 see link to step by step article below http://www.groovypost.com/howto/microsoft/add-a-second-additional-mailbox-in-outlook-2010/

Tuesday, October 9, 2012

Create an Email Macro with Its Own Button

Create an Email Macro with Its Own Button see link to article below: http://www.ucwv.edu/tips/outlook/Create_Email_Macro_Button.aspx

Tuesday, September 25, 2012

Removing legacy exchange servers using ADSIEDIT

Please follow the steps in this article to remove legacy exchange servers using adsiedit. This is not recommended, so use this as the last option. always try to uninstall exchange the recommended way.
 

Problems sending HTML messages from Outlook Web App

Issue: customer reported problems sending HTML messages from Outlook Web App
 
 
synopsis: Found out content type is set to MimeText(default setting) which forces all messages from OWA to go out as plain text
 
 
resolution:From powershell, type set-remotedomain -Identity Default -ContentType MimeHtmlText

Tuesday, September 18, 2012

Archiving email in Outlook for MAC 2011

1. Sometimes, customers may have need to archive mails. Follow the steps below toarchive email in Outlook for mac 2011
 
 
2. In some cases, customers may want to setup auto archiving in Outlook for mac and choose to archive date specific items.
please follow the step by step in this article to do this:
 

Monday, August 20, 2012

This email message cannot be delivered because the email address is no longer valid:

Issue: User tries to send email to her email alias, but got this error "This email message cannot be delivered because the email address is no longer valid: User was still able to send the email Resolution: The email alias in the nickname cache file is corrupt. Remove the alias and problem is resolved Follow the steps in the article link below to reset nickname and automatic completion caches in Outlook http://support.microsoft.com/kb/287623

This email message cannot be delivered because the email address is no longer valid:

Issue: User tries to send email to her email alias, but got this error "This email message cannot be delivered because the email address is no longer valid: User was still able to send the email Resolution: The email alias in the nickname cache file is corrupt. Remove the alias and problem is resolved Follow the steps in the article link below to reset nickname and automatic completion caches in Outlook http://support.microsoft.com/kb/287623

Monday, July 2, 2012

Create Transport rule with one Pshell Liner

Task: using pshell, create transport rule to block phishing attack email using some unique words in the subject or body, then redirect the phishing emails to a generic mailbox called canary10
 
 
 
New-TransportRule -Name 'Phishing attack' -Comments 'email account upgrade' -Priority '0' -Enabled $true -SubjectOrBodyContainsWords 'some DGTX virus ','Technical Mail Admin.' -RedirectMessageTo 'user@domain.com'

Tuesday, June 12, 2012

Use Outlook in Cache and Online Global Address List

You can use Outlook in cache mode and still have the client access the Global Address Book online:
If you make frequent changes to the offline address book, you may want to modify the way that Outlook computers on your network access the Address Book. You can disable the downloading of the offline address book and force the Outlook computers to use the online Global Address List when they use Cached Exchange Mode.
To do this, add the following registry value to the computers, as appropriate for the version of Outlook that you are running.

Outlook 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Cached Mode
Parameter: DownloadOAB
Type: REG_DWORD
Value: 0
Outlook 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Cached Mode
Parameter: DownloadOAB
Type: REG_DWORD
Value: 0
 
We highly recommend Cache mode for outlook users for the reasons stated in the blog site below:
 
http://blogs.technet.com/b/neiljohn/archive/2011/06/15/outlook-2010-network-latency-test-results.aspx

Monday, June 4, 2012

reset search index in Exchange 2010 DAG

How to rebuild full-text index catalog manually for DAG Databases
 
1 Suspend all replica databases
2- Net Stop MsExchangeSearch, delete full-text index catalog directory,start microsoft exchange search service by typing net start MsExchangeSearch
3- Delete the Index Catalog on Replica databases
4- Resume the replica databases.
you can do the following to monitor progress
 
 
To check how the process is going do the following:
1- Open Reliability and Performance Monitor (perfmon.exe).
2- In the console tree, under Monitoring Tools, click Performance Monitor.
3- In the Performance Monitor pane, click Add (green plus sign).
4- In Add Counters, in the Select counters from computer list, select the server on which the mailbox database you want to monitor is located.
5- In the unlabeled box below the Select counters from computer list, select Full Crawl Mode Status in the MSExchange Search Indices performance object.
6- In the Instances of selected object box, select the instance for the user's mailbox database.
7- Click Add, and then click OK.
8- To make easier to monitor the Full Crawl Mode Status, right-click on graph screen then Properties.
9- Select Graph tab.
10- On View Combo box select Histogram bar and Maximum Vertical Scale insert 2, click OK.
When you see a bar for a database it means that the index catalog is been created (value 1), if you don't see a bar meens the indexing has finished for that database.

Wednesday, May 30, 2012

Change the Outlook 2010 Color Scheme

Change the Outlook 2010 color scheme:

Disable APIPA Windows 2008 Server

Disable APIPA Windows 2008 Server

Use Registry Editor to create the following registry key:

  1. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  2. Add the following value to this key:
    Value name: IPAutoconfigurationEnabled
    Value type: REG_DWORD
    Value in hexadecimal: 0 (A value of 0 disables APIPA support on this computer)
    NOTE: If the IPAutoconfigurationEnabled entry is not present, a default value of 1 is assumed, which indicates that APIPA is enabled.
  3. After you make this change, restart your computer.

Tuesday, May 29, 2012

Installing Exchange 2010 sp2 mgmt tools on Windows 7

Installing Exchange 2010 sp2 mgmt tools on Windows 7
1.       Download the sp2(varies) files.
2.       Follow instructions from this url  http://exchangeserverpro.com/exchange-2010-install-management-tools
3.    Apply Update Rollup 2(rollup # varies) from same location as step 1
4.    Reboot your PC.
5.    You are done

Get mailboxes with IMAP enabled

Get mailboxes with IMAP enabled:
Get-CASMailbox -resultsize unlimited | where {$_.IMAPEnabled} | select Name, SamAccountName

Use Netstat to select specific strings

Use Netstat to select specific strings,
in this case Ip address 192.168.1.5, port 993:
 
netstat -ano | Select-String 192.168.1.5

Black Hole method:

Create distribution list with no members. Emails sent to this DL will go into blackhole and won't NDR.
Exchange silently deletes them.

Grant send-on behalf to distribution list

Grant send-on behalf to distribution list called DL for User1:
Set-DistributionGroup -Identity "DL" -GrantSendOnBehalfTo "User1"

Outlook 2010: Automatically Spell Check Emails Before Sending

Outlook 2010: Automatically Spell Check Emails Before Sendinghttp://www.addictivetips.com/windows-tips/outlook-2010-automatically-spell-check-emails-before-sending/

How to determine what Mode Outlook 2010 is running(Cache or Online)

How to determine what Mode Outlook 2010 is running(Cache or Online)
 
 
Click on file menu
Account settings on the right
under email tab, double click on your email address
Under server address, if the check box next to Use Cache Exchange Mode isn't checked, then you are running in Online Mode. If checked, you are running in Cached Mode.
Click Cancel and Close to Exit

Add multiple members to distribution group with one liner

Add multiple members to distribution group with one liner

Import-CSV FileName.csv | ForEach {Add-DistributionGroupMember -Identity "GROUP-NAME" -Member $_.Name}
 

ad-adpermission not available

scenario:

admin wants to be able to run ad-adpermission cmdlet but cmdlet isn't available.
 
Follow these steps to resolve:
step 1: Find parent role and create new mgmt role (child role) called Adpermissions for eg
New-ManagementRole -Name "Adpermissions" -Parent "Active Directory Permissions"

Step 2: Assign role to a security group. security group must be create must be created prior to doing step 2
New-ManagementRoleAssignment -Name "Adpermissions-Ex2010-AdPermissions" -Role "Adpermissions" -SecurityGroup "Ex2010-AdPermissions"

get mounted databases on a server and count it

get mounted databases on a server and count it
 
Get-MailboxDatabaseCopyStatus -Server <Servername> | Where-object {$_.status -eq "mounted"} | measure-object

get the version of your exchange server rollup and all

The most conclusive way to get the version of your exchange server, rollup and all, is to check the file version of ExSetup.exe in the BIN folder.
 
you can use this Pshell one liner:
GCM exsetup |%{$_.Fileversioninfo}
 
find exchange patches and build dates here:
 
Link to Exchange versions/patches and build dates

How to Restore a Deleted Mailbox to a User’s Mailbox

How to Restore a Deleted Mailbox to a User’s Mailbox
 

New-MailboxRestoreRequest -SourceDatabase ExchDB1 -SourceStoreMailbox "Joe Smith" -TargetMailbox "Joe Smith"

How to Connect an Exchange 2010 Mailbox to a User Account

How to Connect an Exchange 2010 Mailbox to a User Account
 
Connect-Mailbox -Identity "Joe Smith" -Database ExchDB01 -User Joe.Smith

get mailboxes in disconnected state

get mailboxes in disconnected state
get-mailboxserver | get-mailboxstatistics | where { $_.DisconnectDate -ne $null } | fl DisplayName, DisconnectDate, databasename

Friday, May 4, 2012

Sync Issues

Problem: A customer is getting folder sync errors in the Outlook client .
 
Resolution: Take the customer's account out of cached mode, close and re-open outlook. The errors will go away.

Friday, April 27, 2012

locate old meetings and change meeting organizer

Locate Old meetings and Change meeting Organizer
 

Imap user not able to login to Exchange 2010

Issue: Imap user not able to login to Exchange 2010
 
synopsis: User has been able to login to Imap using any imap client. However imap suddenly stopped working and won't accept the credentials. User was able to login to OWA or Outlook with same credentials
 
 
Resolution: Move user's mailbox to another database and Clear the move requests

Tuesday, April 24, 2012

troubleshooting Outlook logon prompt for users

Synopsis: group of outlook users homed on Exch2007 reported logon prompt issues. Users(who already logged in the domain) get prompted to login upon launching Outlook. In some cases, users login successfully, but receive logon prompts intermittently
Systems/Software Affected: Outlook 2007, Outlook 2010, Exchange 2007
Things to check on Exchange 2007 CAS servers when such issues happen:
1. Please note that Issue could be related to a reboot of Domain Controller. Confirm with AD team prior to troubleshooting
2. Issue is also likely related to Offline Address Book (OAB)
login to the Exch2007 cas servers and confirm the following:
1. launch IIS manager and under default website
2. right click OAB, properties, directory security
3. make sure integrated windows authentication and basic auth are checked
4. Go to Exchange installation folder, for eg E:\program files\exchange server\client access
5. Right click on OAB, properties, ensure that authenticated users is in the ACE and check to make sure the group at least read and execute right
6. If all the settings are correct, you are done with your checks. If not, make the changes and do iisreset /noforce from the command prompt
 
as part of the test, you can type this url to verify you can reach the OAB xml file;

Thursday, April 12, 2012

Resolving Quarantined Mailboxes in Exchange 2010

Exchange 2010 has a security measure when it comes across a 'poisoned' mailbox' in its Information Store database. If it deems the mailbox 'dirty' or 'poisoned', it will quarantine the mailbox. This keeps it safe from corruption and crashing.
Usually, quarantined mailboxes will be released after some hours (2-6hrs). In some cases, that may not be feasible, as user will have to stay without access to email.
You can follow these steps to resolve if critical: (you must be admin to do these)

1.Run Get-MailboxStatistics -identity 'username' | fl
2.Copy the mailbox GUID and keep it handy.
3.Open up the registry and navigate to HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\MSEXCHANGEIS\<SERVERNAME>\PRIVATE-(DB GUID)\QUARANTINEDMAILBOXES\(MAILBOX GUID)
4.Delete the key.
5.Restart the Information Store
6.Run an IISRESET
 
 
Important repair considerations:
Consider repairing the mailbox upon expiration of 6hrs(release of mailbox from quarantine)
 
A. This example detects and repairs the folder view for the mailboxob@domain.com
New-MailboxRepairRequest -Mailbox obtest@domain.com -CorruptionType FolderView
 
 
B.This example detects and repairs all corruption types for mailboxes that have CustomAttribute2 set to RepairCorruption.
 
Get-Mailbox -Filter {CustomAttribute2 -like "RepairCorruption"} | New-MailboxRepairRequest -CorruptionType SearchFolder,AggregateCounts,ProvisionedFolder,FolderView
 
During the repair operation, there will be no mailbox access for the user.
 

The output of New-MailboxRepairRequest will be a number of Event IDs with a source of “MSExchangeIS Mailbox Store” and you will need to watch for the following events related to a repair request “0044,10045,01146,10047,10048,10049,10050,10051,10059,10062”

Tuesday, April 10, 2012

Use Pshell commands to mass delete spam from your mailbox

use a combination of get-mailbox plus search-mailbox to mass-delete unwanted content(such as spam, etc) from your mailbox
 
 
 
get-mailbox -id username | Search-Mailbox -SearchQuery subject:"spam",from:spamcop@fakesite.edu -DeleteContent 

Thursday, February 23, 2012

Apply ad permission to multiple databases at once

Apply ad permission on multiple databases at once using these steps:
 
scenario: customer wants admin acct to have receive-as permissions on all databases that start with on
 
soln: use this powershell one liner
 
get-mailboxdatabase | where-object {$_.identity -like "on*"} | Add-ADPermission -user "admin" -accessrights extendedright -extendedrights receive-as, ms-exch-store-admin -inheritancetype 'All'
 

Friday, February 3, 2012

Importing data into Outlook 2011 (.pst, Entourage, Olm, Apple Mail, and others)

Importing data into Outlook 2011 (.pst, Entourage, Olm, Apple Mail, and others)
 
 
 
Important Conversion notes:
 
1. Export mailbox in MacMail to .mbox format
2. Import .mbox into Outlook for MAC 2011

sync services on outlook 2011 - OSX lion

Issue:
I updated to OSX Lion. While in Outlook 2011, opening the sync services, all the panes were blank, so I cant configure it to sync the outlook calendar with ical and outlook contacts with apple adress book.

resolution:
Click on mac desktop to show finder menu
Press option key and click on Go on finder menu
Click on Library, Preferences
Look for this file com.microsoft.Outlook.SyncServicesPreferences.plist and delete it
Exit and launch Outlook