TechShizz | All posts tagged 'Exchange 2010'

DAG Failures

If a Mailbox copy becomes unhealthy or fails it will be necessary to suspend the mounted database and failover to the database copy.

 

The failed copy can be un-mounted, renamed and moved to another location for safe keeping.

 

You can then create a new database copy from the failover copy back to the original location from the DAG tab in EMC.

Configure Logging in Exchange 2010

The main place to configure logging is when right clicking on the  server object under server configuration for a giver server.

Click on "Manage Diagnostic Logging Properties" and configure which logs are needed.

Manage Diagnostic Logging Properties

 

Logging can also be enabled for a given connector as shown below.

Send connector properties

 

On the Hub Transport role, we can configure if logging happens and where to save those log files.

Log settings tab

 

It's also worth noting that Group Policy may have some audit policies enabled that will pick up some Exchange events.

Local Audit Policy


PowerShell Remote Administration - Implicit Remoting

To administer Office 365 you will need the following:

 

Azure AD PowerShell

 

Prerequisites

 

  • Windows 7+ / Server 2008R2 +
  • .NET 3.51 Framework
  • All cloud services subscription updates
  • Online Services Sign-in Assistant - OS Specific - From MS Download Centre.
  • Azure Administrative Console - From MS Download Centre.

See this link : http://technet.microsoft.com/library/jj151815.aspx

Download from HERE

Connect to Office 365 to administer Users, Licenses etc. (Not Exchange)

 

$msolcred = get-credential
connect-msolservice -credential $msolcred

 

(Log in with your  user@domain.onmicrosoft.com account)

 

To Administer Exchange in Office 365

 

 

Launch Azure Module for PowerShell or import the module - Import-Module MSOnline

 

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

 

Import-PSSession $Session

 

To administer another exchange server via PowerShell remotely

 

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://mail.mydomain.com/powershell -Credential $UserCredential -Authentication Basic -AllowRedirection

 

Import-PSSession $Session

 

You may need to change the -Authentication switch to "Kerberos" depending on security settings.

 

To administer share point online

 

You need to download and install the SharePoint PowerShell module before this will work:

https://www.microsoft.com/en-gb/download/details.aspx?id=35588

 

$UserCredential = Get-Credential

Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking

$SP = Read-Host -Prompt 'Enter SharePoint Domain'

Connect-SPOService -Url https://$SP-admin.sharepoint.com -credential $UserCredential

 

To administer Skype for Business Online (Lync)

 

You need to download and install the Skype for Business PowerShell module before this will work:

https://www.microsoft.com/en-gb/download/details.aspx?id=39366

 

$UserCredential = Get-Credential

Import-Module SkypeOnlineConnector

$sfboSession = New-CsOnlineSession -Credential $UserCredential

Import-PSSession $sfboSession

 

One big script

 

if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoExit -NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; Exit }

Import-Module MSOnline

$UserCredential = Get-Credential

Connect-MsolService -Credential $UserCredential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking

$SP = Read-Host -Prompt 'Enter SharePoint Domain'

Connect-SPOService -Url https://$SP-admin.sharepoint.com -credential $UserCredential

Import-Module SkypeOnlineConnector

$sfboSession = New-CsOnlineSession -Credential $UserCredential

Import-PSSession $sfboSession

Client Throttling Policy

Client throttling policies allow you to manage Client Access server performance by monitoring how users consume resources and enforcing bandwidth limits where necessary. Client throttling policies allow you to stop users from intentionally or unintentionally degrading Client Access server performance when they use a disproportionate amount of Client Access server resources. When you first deploy Exchange Server 2010, a default throttling policy is applied. You can view the properties of this policy by using the Get-ThrottlingPolicy cmdlet in the EMS. Throttling policies apply to the following Exchange components:

 

  • Exchange ActiveSync
  • Exchange Web Services
  • IMAP
  • OWA
  • POP
  • Windows PowerShell

 

You manage throttling policy settings using the following EMS cmdlets:

 

  • Get-ThrottlingPolicy - Get the properties of existing throttling policies
  • Set-ThrottlingPolicy - Configure the properties of an existing throttling policy 
  • New-ThrottlingPolicy - Create a new throttling policy
  • Remove-ThrottlingPolicy - Remove an existing throttling policy