Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Get-ClusterResource" cmdlet throws "not recognized as a cmdlet, function, operable program, or script file" error.

557 views
Skip to first unread message

shivaraj

unread,
Jan 15, 2010, 4:52:05 AM1/15/10
to
Hi, I am trying to use "Get-ClusterResource" cmdlet to fetch "File
Share Witness" property of CCR cluster. But when I run this command no
"Exchange Management Shell" I am getting "The term 'Get-
ClusterResource' is not recognized as a cmdlet, function, operable
program, or script file. Verify the term and try again." error.
Any idea why I am getting this error? Do I need to add any "PSSnapin"
via Add-PSSnapin cmdlet ? If so which one it is? Basically I am not
able to run any of the cluster related GET cmdlets on Exchange
Management Shell.

Ed Crowley [MVP]

unread,
Jan 15, 2010, 11:24:00 AM1/15/10
to
What version of Windows and Exchange? This is a Windows 2008 or Windows
2008 R2 cmdlet. Is that your operating system? If not, then you're looking
at the CLUSTER command.
--
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
.

"shivaraj" <shivaraj....@gmail.com> wrote in message
news:9912cba8-a001-42d9...@m3g2000yqf.googlegroups.com...

shivaraj

unread,
Jan 18, 2010, 3:30:14 AM1/18/10
to
Windows version: Windows 2008 Enterprise version Service pack 1
Exchange version: Exchange server 2007 Version : 08.01.0240.006

I did not get your question. Is this a Windows 2008 or Windows 2008 R2
cmdlet!!?? Is there a separate version of windows called 2008 R2
cmdlet ? Cant I run this cmdlet on Windows 2008 Enterprise version?
I can run "CLUSTER RESOURCE" command on powershell to fetch similar
information. But I wanted to fetch this using C# . In which I am
trying to use

Collection<PSObject> results = ri.Invoke("Get-ClusterResource");
PSPropertyInfo prop = (PSPropertyInfo)mo.Properties["Resource"];

I cant use "Cluster Resource" instead of Get-ClusterResource as it
always returns NULL when I try to get "Resource" property attribute.

Regards,
Shivaraj


On Jan 15, 9:24 pm, "Ed Crowley [MVP]" <cursp...@nospam.net> wrote:
> What version of Windows and Exchange?  This is a Windows 2008 or Windows
> 2008 R2 cmdlet.  Is that your operating system?  If not, then you're looking
> at the CLUSTER command.
> --
> Ed Crowley MVP
> "There are seldom good technological solutions to behavioral problems."
> .
>

> "shivaraj" <shivaraj.malanna...@gmail.com> wrote in message

Ed Crowley [MVP]

unread,
Jan 18, 2010, 12:39:20 PM1/18/10
to
Questions about the use of C# should be posted in the .development
newsgroup. The code people lurk there more.

--
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
.

"shivaraj" <shivaraj....@gmail.com> wrote in message
news:ef4ee352-103a-4c89...@e27g2000yqd.googlegroups.com...

0 new messages