We help IT Professionals succeed at work.

Get-ExchangeServer

StephRu
StephRu asked
on
1,536 Views
Last Modified: 2012-12-09
Hello,

Everything started when I simply wanted to find out what version of Exchange 2010 (on a SBS2011) was installed on my server :

Get-ExchangeServer | Format-Table Name, *Version*

Open in new window


And I would get the following error :

Get-ExchangeServer <<<<  | Format-Table Name, *Version*
  + CategoryInfo          : InvalidOperation: (C:\Windows\system32\Get-ExchangeServer:String) [], RuntimeException
  + FullyQualifiedErrorId : CantActivateDocumentInPipeline

Open in new window


So then I simply tried :

Get-ExchangeServer

Open in new window


And it open the window "open with", like when you try to open a file with a format that the computer doesn't recognize.

What can I do about this ? I can't find any relevant information ... thank you for your help.
Comment
Watch Question

Jamie McKillopIT Director
CERTIFIED EXPERT

Commented:
Hello,

Are you running this from the server or a workstation? If from a workstation, do you have the Exchange admin tools installed? In either case, are you running it from a normal powershell window or are you running it in EMS?

JJ

Author

Commented:
It's on the server, from the EMS. I really don't understand why, it's working perfectly on another SBS2011 of mine.

get-mailboxdatabase will work perfectly :-/
Rajkumar DuraisamyRajkumar Duraisamy (Rajkumar-MCITP)
Top Expert 2012

Commented:
are you able to use this command?

Get-ExchangeServer -Identity "ServerName" | FT name, *version*

Author

Commented:
Thanks for helping me out guys.

Here is what I get :

+ Get-ExchangeServer <<<<  -Identity "sbs2011" | FT name, *version*
    + CategoryInfo          : InvalidOperation: (C:\Windows\system32\Get-ExchangeServer:String) [], RuntimeException
    + FullyQualifiedErrorId : CantActivateDocumentInPipeline

Open in new window

Rajkumar DuraisamyRajkumar Duraisamy (Rajkumar-MCITP)
Top Expert 2012

Commented:
I don't have any problem in using the same shell command


[PS] C:\Windows\system32>Get-ExchangeServer | ft name, *version*

Name                                    AdminDisplayVersion                     ExchangeVersion
----                                    -------------------                     ---------------
EX01                                    Version 14.1 (Build 218.15)             0.1 (8.0.535.0)

Sorry for asking this, Are you login to exchange server with admin credential? I mean the domain account and not the local account, also what is the output of this shell command

get-excommand get-exchangeserver

Author

Commented:
Yes connected as Domain Admin and launched the shell with administrator rights.

Worst possible output : NOTHING :-/ .

It just goes to the next line ... waiting for a new input.

Author

Commented:
I have just installed Exchange 2010 SP2, with no issue.

I launched the powershell and had the following message (translated from french) :

COMMENTS: Connecting to "servername"
WARNING: Creating a proxy was ignored for the following command: "Get-ExchangeServer" because this
Operation mask an existing local command. Use the parameter AllowClobber if you want to hide
existing local controls.
COMMENTS: Connected to  "servername".

Open in new window

Kamalasekar ParthasarathyMessaging Support

Commented:
Try the below command

C:\PS>$s = new-pssession -computername Server01

C:\PS> import-pssession -session $s

If still no luck, then update the exchange 2010 sp2 with latest rollups and reboot the server.

Also, try to do with runas adminstrator and check..

Author

Commented:
Thanks for helping me out.

This is what I get (some text is given before the error, talking about WinRM - winrm quickconfig) :

+ CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
    + FullyQualifiedErrorId : PSSessionOpenFailed

Open in new window


I'm using of course runas administrator for the powershell.
Rajkumar DuraisamyRajkumar Duraisamy (Rajkumar-MCITP)
Top Expert 2012

Commented:
Your error ID showing PSSessionOpenFailed

Troubleshooting steps for the above error message is mentioned over here from MS
http://technet.microsoft.com/en-us/library/dd351136.aspx

Author

Commented:
All the problems concerning PSSessionOpenFailed are related to remote connections, which is not my case.

Author

Commented:
Anyone :( ?
Rajkumar DuraisamyRajkumar Duraisamy (Rajkumar-MCITP)
Top Expert 2012

Commented:
you managed to get a solution for this issue?

If not, Can you run this command and check whether remotepoershell is already enabled or not?

Set-User -Identity "AccountWhichyouLoginNow" -RemotePowerShellEnable $True
Rajkumar DuraisamyRajkumar Duraisamy (Rajkumar-MCITP)
Top Expert 2012

Commented:
Set-User -Identity "AccountWhichyouLoginNow" -RemotePowerShellEnabled $True

Author

Commented:
Thanks Rajkumar for your help.

I executed your command and it said that the execution of the command is over but no parameter has been changed.

Author

Commented:
No one :( ?

In the attached picture, you can first see the error when I do " Get-ExchangeServer | ft name, *version* " and then when I just enter "Get-ExchangeServer" it open the window "open with..." like when Windows doesn't recognize a file extension :-/
ScreenShot072.png

Author

Commented:
Still looking for a solution ... :-/
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Didn't find how to close a topic with no solution ...

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.