O-Xchange Notes from the Field!

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.