Solved

Powershell script to make Exchange 2007 CCR cluster online

Posted on 2010-11-12
7
801 Views
Last Modified: 2012-05-10
Hy,

I need a script to check if the CCR cluster is online or not.

If the Cluster and all ressource is Online, the script not do anything.

If the cluster is Oflline, the script start the cluster.

Thanks for your help
0
Comment
Question by:cawasaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 34129355
The important piece of a CCR cluster is that the databases are online
Get-MailboxDatabase -Status | ForEach-Object { if  ($_.Mounted -eq $False) { Mount-Database $_.ObjectGuid }

0
 

Author Comment

by:cawasaki
ID: 34130690
Hi,

Your script do not work because database need the CMS started before.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 34130956
you could run

$cluster = Get-Service ClusSvc
if($cluster.Status -eq "Stopped") { Start-Service ClusSvc }
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:cawasaki
ID: 34134440
Hi,

The service is running, the good command is:

 Start-ClusteredMailboxServer

this command start all clustered ressource.

Its possible to get this command in the script?

Thanks
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 34135580
there are several pieces and i didn't have access to any cluster over the weekend

##verify cluster service is running and start if it is not
$cluster = Get-Service ClusSvc
if($cluster.Status -eq "Stopped") { Start-Service ClusSvc }

##check the status of the CCR
$ccr =Get-ClusteredMailboxServerStatus
if($ccr -ne "Online) { Start-ClusteredMailboxServer <CcrName> }

0
 

Author Comment

by:cawasaki
ID: 34135643
##check the status of the CCR
$ccr =Get-ClusteredMailboxServerStatus
if($ccr -ne "Online) { Start-ClusteredMailboxServer <CcrName> }


if($ccr -ne "Online)==>Offline or online :)
0
 
LVL 32

Expert Comment

by:endital1097
ID: 34139871
There are other potential values so I would use online
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question