Sunday, August 30, 2015

[EX2010] DAG Maintenance Cmdlets



Cmdlets

Get-MailboxDatabaseCopyStatus -id <dbname> -server <servername>

Test-ReplicationHealth -server <servername>

Suspend-MailboxDatabaseCopy -Identity <DB\MBX>

Resume-MailboxDatabaseCopy -Identity <DB\MBX> -ReplicationOnly (After the copy is resumed, it remains administratively blocked for activation.)

Update-MailboxDatabaseCopy -Identity <DB\MBX> -SourceServer <MBX2> -DeleteExistFile: $True -CatalogOnly -DatabaseOnly

.\CheckDatabaseRedundancy.ps1 -MailboxDatabaseName <DB>

.\StartDagServerMaintenance.ps1 -serverName <MBX>
.\StopDagServerMaintenance.ps1 -serverName <MBX>


Events

Event Viewer -> Applications and Services Logs
-> Microsoft -> Exchange -> HighAvailability

HighAvailability that contains events related to the startup and shutdown of the Microsoft Exchange Replication service and all the components that run within it, and events such as a database mount, log truncation or events related to the DAG's underlying cluster;

-> Microsoft -> Exchange -> MailboxDatabaseFailureItems

MailboxDatabaseFailureItems is used to log events associated with any failures that affect a replicated mailbox database;

-> Microsoft -> Exchange -> Troubleshooters

Troubleshooters is used by some Exchange troubleshooting scripts such as the Content Index Troubleshooter (Troubleshoot-CI.ps1) to log warnings and failures.

-> Microsoft-Exchange-Troubleshooters/Operational
-> MSExchange Management

If a database is in a “bad” state for over 20 minutes (in duration, not consecutive) in the hour-long run of the script, an EventID 4113 is generated and logged into the local server’s Application log. If the database is “ok” for 10 consecutive minutes, an EventID 4114 is logged.

[EX2010] Pre-requisites on 2008 R2



  • Hub Transport

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Client Access Server

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Mailbox

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Unified Messaging

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Desktop-Experience -Restart

  • Edge Transport

Add-WindowsFeature NET-Framework,RSAT-ADDS,ADLDS -Restart

  • Typical (CAS/HUB/Mailbox)

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Client Access and Hub Transport

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Client Access and Mailbox

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Hub Transport and Mailbox

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

  • Client Access, Hub Transport, Mailbox and Unified Messaging

Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,Web-Asp-Net,Web-Client-Auth,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Http-Redirect,Web-Http-Tracing,Web-ISAPI-Filter,Web-Request-Monitor,Web-Static-Content,Web-WMI,RPC-Over-HTTP-Proxy,Desktop-Experience, RSAT-DNS-Server, GPMC, Telnet-Client -Restart

[EX2007] Virtual Directories




Default Web Site
Anonymous authentication
SSL required
Require 128-bit encryption

aspnet_client
Anonymous authentication
SSL required
Require 128-bit encryption

Autodiscover
Basic authentication
Windows authentication
SSL required
Require 128-bit encryption

EWS
Windows authentication
SSL required
Require 128-bit encryption

owa
Basic authentication
SSL required
Require 128-bit encryption

Exchange
Basic authentication
Windows authentication
SSL required
Require 128-bit encryption

Public
Basic authentication
Windows authentication
Not required

Exchweb
Basic authentication
Windows authentication
SSL required
Require 128-bit encryption

OAB
Windows authentication
Not required

UnifiedMessaging
Windows authentication
SSL required
Require 128-bit encryption

Microsoft-Server-ActiveSync
Basic authentication
SSL required
Require 128-bit encryption

Rpc
Basic authentication
Windows authentication
SSL required
Require 128-bit encryption

RpcWithCert
By default, all authentication methods are disabled
SSL required

[EX2007] Cluster



1. Planning for Single Copy Clusters

2. Installing a Single Copy Cluster on Windows Server 2008

3. How to Create a Windows Server 2008 Failover Cluster for a Single Copy Cluster

4. How to Configure the Cluster Networks for a Single Copy Cluster

5. How to Configure the Node and Disk Majority Quorum

6. How to Validate a Failover Cluster Configuration for a Single Copy Cluster

7. How to Install the Active Clustered Mailbox Role in a Single Copy Cluster on Windows Server 2008

8. How to Install the Passive Clustered Mailbox Role in a Single Copy Cluster on Windows Server 2008

[EX2007] Remove delegates



Set-MailboxCalendarSettings -Identity ConferenceRoom -ResourceDelegates $null


PowerShell: Remove invalid delegates from mailboxes



[EX2007] Export Mailbox

To export the special folders and empty folders of the mailbox to a folder in the destination mailbox, run the following command:

Export-Mailbox -Identity <MailboxIdParameter> -TargetMailbox <MailboxIdParameter> -TargetFolder <Folder_Name>

To export data to a .pst file, run the following command:

Export-Mailbox -Identity <MailboxIdParameter> -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst

To export only data from the Sent Items folder, run the following command:

Export-Mailbox -Identity <MailboxIdParameter> -IncludeFolders '\Sent Items' -TargetFolder <Target_Folder_Name> -TargetMailbox <MailboxIdParameter>

To exclude folders from the export, such as excluding items in the Junk E-Mail and Contacts folders, run the following command:

Export-Mailbox -TargetMailbox <MailboxIdParameter> -TargetFolder <Target_Folder_Name> -ExcludeFolders "\Junk E-Mail","\Contacts"


Remove inherited permissions

“ADSIEdit.msc“
Choose Action -> Connetc to …
In the Connection point area, click ‘Select a well known Naming Context’ and choose ‘Configuration’ from the Drop Down Menu.
Browse down to Services\Microsoft Exchange\<Name of your Exchange Organization>\Administrative Groups\Exchange Administrative Group (FYDIBOHF23SPDLT)\Servers

Tuesday, August 25, 2015

[EX2007] Pre-requisites on 2008 R2





  • Hub Transport

Add-WindowsFeature RSAT-ADDS,Web-Metabase,Web-Lgcy-Mgmt-Console, RSAT-DNS-Server, GPMC, Telnet-Client

  • Client Access Server

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Dyn-Compression,Web-Windows-Auth,Web-Basic-Auth,Web-Digest-Auth,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client

  • Mailbox

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-ISAPI-Ext,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Basic-Auth,Web-Windows-Auth, RSAT-DNS-Server, GPMC, Telnet-Client

  • Unified Messaging

Add-WindowsFeature RSAT-ADDS,Web-Metabase,Web-Lgcy-Mgmt-Console,Desktop-Experience

  • Edge Transport

Add-WindowsFeature RSAT-ADDS,ADLDS

  • Typical (CAS/HUB/Mailbox)

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Dyn-Compression,Web-Windows-Auth,Web-Basic-Auth,Web-Digest-Auth,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client

  • Client Access and Hub Transport

Add-WindowsFeature RSAT-ADDS,Web-Server,Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Dyn-Compression,Web-Windows-Auth,Web-Basic-Auth,Web-Digest-Auth,RPC-Over-HTTP-Proxy, RSAT-DNS-Server, GPMC, Telnet-Client