Solved

Powershell script to make Exchange 2007 CCR cluster online

Posted on 2010-11-12
7
800 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
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

734 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