Solved

Powershell script to make Exchange 2007 CCR cluster online

Posted on 2010-11-12
7
793 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
  • 4
  • 3
7 Comments
 
LVL 32

Expert Comment

by:endital1097
Comment Utility
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
Comment Utility
Hi,

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

Expert Comment

by:endital1097
Comment Utility
you could run

$cluster = Get-Service ClusSvc
if($cluster.Status -eq "Stopped") { Start-Service ClusSvc }
0
Why do Marketing keep bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

 

Author Comment

by:cawasaki
Comment Utility
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
Comment Utility
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
Comment Utility
##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
Comment Utility
There are other potential values so I would use online
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article will help you understand what HashTables are and how to use them in PowerShell.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now