Showing posts with label Exchange 2013 SP1. Show all posts
Showing posts with label Exchange 2013 SP1. Show all posts

Thursday, March 27, 2014

Connecting Exchange 2013 Using Windows Powershell



Connecting Exchange 2013 Powershell Locally using Windows Powershell

Open the Windows Powershell and load the snaps-in

Add-PSSSnapin Microsoft.ex*

Connecting Exchange 2013 Powershell remotely using Windows Powershell

Get-ExecutionPolicy
Set-ExecutionPolicy Unrestricted
$Credentials = Get-Credential
$ExSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri `http://ex2013.lab.com/powershell/?SerializationLevel=Full' -Credential $Credentials -Authentication Kerberos
Import-PSSession $ExSession

Microsoft Exchange Server 2013 Operation Guide

Written Exchange 2013 Operation Guide which carries complete detail on basic day-to-day Exchange administration that are performed by level 1 and level 2 Exchange Administrator. This guide will be very much helpful for them to understand the basic Exchange 2013 administration. This is the draft initial copy. I will keep it updated ongoing with several other Exchange 2013 admin related task.

You can download your copy from the below url


Version 0.3 Updated on 24/03/14
  • Added few more mailbox, contact, distribution powershell cmdlet for various cases
Version 0.2 Updated on 20/03/14
  • Added messaging tracking powershell cmdlet for various cases
Version 0.1 Updated on 14/03/14:
  • Restriction of Microsoft Outlook Version for single mailbox
  • Restriction of Microsoft Outlook Version for mailbox server
  • Blocking RPC Over HTTP for Outlook Clients
  • Enable Microsoft Exchange Cached Mode for Outlook Clients
  • Disabling Pop3 and IMAP Protocol
  • Disabling access to Outlook Web Access
  • Disabling ActiveSync access
  • Exchange Server 2013 Service Administration with Powershell cmdlet
  • To Change Regional Time Zone of user mailbox
  • Adding additional folder on user mailbox
  • Adding Email Signature on User Mailbox
  • Checking the Mobile Device Statistics
  • Exchange Server 2013 Retention Policy
  • Removal of network from Exchange 2013

Please Table of Content of the document

Table of Contents

1        Introduction. 4
2        Exchange Admin Center 4
3        Installation of Exchange Server 2013 Management Tool 4
3.1          Installation of Exchange Server 2013 Management Tool in Windows 7. 4
3.2          Installation of Exchange Server 2013 Management Tool in Windows 8. 5
4        Exchange 2013 Role Based Access Control 5
4.1          Built in Role Groups. 5
4.2          Built In Management Role. 6
4.3          Exchange Server 2013 Scope Creation. 7
4.4          Role Group Creation. 7
4.5          Add Role Group Member 7
5        Operations Management 8
5.1          Mailbox Management 8
5.1.1            Creation of user mailbox using Exchange Admin Center 8
5.1.2            Creating & enabling user mailbox using Exchange Powershell 8
5.1.3            Creating Bulk User Mailbox. 8
5.1.4            Enabling and Disabling User Mailbox. 8
5.1.5            Connecting User Mailbox. 9
5.1.6            Removing User Mailbox. 9
5.1.7            Creating Resource and Room Mailbox. 9
5.1.8            Purging message content of user mailbox. 9
5.1.9            Managing Mailbox Permission for user mailbox. 9
5.1.10          Verifying the Mailbox Permission. 9
5.1.11          Enabling and disabling Auto-reply & OOF for Mailbox. 9
5.1.12          Cleaning Mailbox in Database. 10
5.1.13          To check Soft Deleted Mailbox. 10
5.1.14          To verify disconnected Mailbox. 10
5.1.15          To Connect the disconnected Mailbox. 10
5.1.16          Moving Mailbox using Exchange Powershell 10
5.1.17          Checking the Move request statistics. 10
5.1.18          Viewing Mailbox Statistics. 10
5.1.19          Finding pressure on a mailbox database. 11
5.2          Contact Management 11
5.2.1            Creating a mail contact using Exchange Admin Center 11
5.2.2            Creating a mail contact using Exchange Powershell 11
5.3          Distribution Group Management 11
5.3.1            Creating a Distribution Group using Exchange Admin Center 11
5.3.2            Creating a Distribution Group using Exchange Powershell 11
5.3.3            Members approval to add in the Group. 11
5.3.4            Sending email from the Group. 12
5.3.5            Email approval for Sending message to the Group. 12
6        Daily Tasks. 12
6.1          Performing Physical Environmental Checks. 13
6.2          Performing and Monitoring Backups. 13
6.3          Checking Disk Usage. 13
6.4          Checking Disk Space. 13
6.5          Checking the Event Viewer 14
6.6          Monitoring Server Performance. 14
6.7          Monitoring the Operating System.. 14
7        Weekly Tasks. 14
8        Monthly Tasks. 14
9        Server Administration And Maintenance. 15
9.1          Verifying the Mailbox Database copy status. 15
9.2          Step By Step Exchange 2013 Database Recovery. 15
9.3          Installing Rollups and patches on Exchange Server 2013. 16
9.3.1            Bringing mailbox server MBX01 to Maintenance. 16
9.3.2            Resuming Exchange server 2013 to normal transport processing. 17
9.3.3            Balancing the Exchange databases in DAG.. 17
9.3.4            Moving the Primary Active Manager (Optional) 18
9.4          Step by Step Exchange 2013 DataCenter Failover 18
9.4.1            Exchange DAG Terminology. 18
9.4.2            Verification of Exchange 2013 DAG Components: 19
9.4.3            Exchange 2013 Datacenter SwitchOver 20


Saturday, March 15, 2014

Unable to remove Shared Mailbox from Outlook Client 2007/2010/2013

Sometime you may observe shared mailbox are automatically added in your outook. When you try to remove them on going to Control Panel - Mail - Profile - You will not able to find them.This is due to the automapping feature of Exchange Server.

Easiest way to use Exchange Management shell as follow

Verify the Mailbox Permission of Shared Mailbox

Get-MailboxPermission -Identity 'Shared Mailbox'

Set the Automapping to False on executing the below powershell cmdlet

Add-MailboxPermission -Identity 'Shared Mailbox' -User 'Raji S' -AccessRight FullAccess -InheritanceType All -Automapping $false

If you want to completely remove shared mailbox permission for the user

Remove-MailboxPermission -Identity 'Shared Mailbox' -User 'Raji S' -AccessRight FullAccess -InheritanceType All

Schema Attribute which holds the value: msExchDelegateListLink & msExchDelegateListBL

Also check Outlook 2007/2010/2013 hotfix is installed  - http://support.microsoft.com/kb/2839517/en-us

Friday, March 14, 2014

Exchange 2013 DAG Error - MapiDAGNetwork is not up. ReplicationDAGNetwork is not up. Current state is 'Misconfigured'



Whenever you add additional network to the DAG network for example additional interface for ISCSI, additional LAN Interface for Storage or additional LAN interface to take backup this may leads to collide with Exchange 2013 DAG network automatically and may result issue as follows,
  • ·         Random disrupt on the email connecitivity
  • ·         Issue on the email flow
  • ·         Queue in the transport service.
This can be verified on running the cmdlet 

Get-DatabaseAvailabilityGroupNetwork | format-list Subnet

It shows as Misconfigured.The cause for the issue  is by default in Exchange 2013, DAG networks are automatically configured by the system. Make sure the binding of the network interface that is newly added other than default DAG networks need to be moved below. This can be achieved on selecting network connection – advance connection - bindings

Solution

1.        Enable the DAG network as manual

Set-DatabaseAvailabilityGroup -ManualDagNetworkConfiguration $true

2.        Disabling the network in DAG

Set-DatabaseAvailabilityGroupNetwork -Identity DAG2\DAGNetwork02 -ReplicationEnabled:$false -IgnoreNetwork:$true

3.        Verify the DAG network

Get-DatabaseAvailabilityGroupNetwork | format-list Subnet

4.        Verification of Network role Status in Cluster

Check the Network role status in the cluster service (New Network 01)
if Role 0 (0×0) tells the cluster not to use the network;
if Role 1 (0×1) tells the cluster that this is a private network;
if Role 3 (0×3) tells the cluster that this is a public network.

C:\Windows\system32>cluster network 'New Network 01' /prop
Listing properties for 'New Network 01':

T  Network              Name                           Value
-- -------------------- ------------------------------ -----------------------
SR Cluster Network 1    Name                           Cluster Network 1
MR Cluster Network 1    IPv6Addresses
MR Cluster Network 1    IPv6PrefixLengths
MR Cluster Network 1    IPv4Addresses                  100.200.26.0
MR Cluster Network 1    IPv4PrefixLengths              24
SR Cluster Network 1    Address                        100.200.26.0
SR Cluster Network 1    AddressMask                    255.255.255.0
S  Cluster Network 1    Description
D  Cluster Network 1    Role                           3 (0x3)
D  Cluster Network 1    Metric                         10000 (0x2710)
D  Cluster Network 1    AutoMetric                     1 (0x1)

If role is not 0 then set the Role to 0:
Cluster network 'New Network 01' /prop Role=0

5.        Verifying the Cluster properities

[PS] C:\Windows\system32>cluster /prop

6.        Listing the Cluster Network properities

[PS] C:\Windows\system32>cluster network /prop

7.        Verifying the Cluster Network Interface status

[PS] C:\Windows\system32>cluster netint

8.        Checking the Quorum Type

[PS] C:\Windows\system32>cluster /quorum

9.        Check out the incoming and Outgoing Connection status

Get-MailboxDatabaseCopyStatus * -ConnectionStatus | Select-Object MailboxServer, ID, *Connections, *network | Export-Csv C:\temp\repl.csv

10.     Check the all the network informated connected to the server

Get-DatabaseAvailabilityGroupNetwork -Server | Select Name, MapiAccessEnabled, ReplicationEnabled, IgnoreNetwork

The blog is written to the share the knowledge mainly on Microsoft Exchange Server and other Microsoft product that experienced on day-to-day life.