Windows Server TechCenter > Windows Server Forums > Windows PowerShell > How to add exchange 2010 PSSnapin to ISE?
Ask a questionAsk a question
 

AnswerHow to add exchange 2010 PSSnapin to ISE?

Answers

  • Friday, October 30, 2009 3:31 PMMOW_MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    the snapin is :

    Microsoft.Exchange.Management.PowerShell.Admin

    so

    add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin

    there is also a startup script that you might want to run :

    %programfiles%\Microsoft\Exchange Server\bin\Exchange.ps1

    Greetings MOW

All Replies

  • Friday, October 30, 2009 2:23 PMMarco ShawMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You should be able to:
    1. Do it manually through the bottom pane.
    or
    2. Add the snapin directly into your script.
    or
    3. Add it to the Microsoft.PowerShellISE_profile.ps1 ISE profile (in the ISE, type $profile to see the location).

  • Friday, October 30, 2009 3:12 PMValery Tyurin Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Not clear to my. What is the name exchange 2010 snapin?
    Truly, Valery Tyurin
  • Friday, October 30, 2009 3:25 PMMarco ShawMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Try:
    PS>get-pssnapin -registered

    You should be able to easily see the name.

    If not, I'll try to fire up my E2010 RC VM.
  • Friday, October 30, 2009 3:31 PMMOW_MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    the snapin is :

    Microsoft.Exchange.Management.PowerShell.Admin

    so

    add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin

    there is also a startup script that you might want to run :

    %programfiles%\Microsoft\Exchange Server\bin\Exchange.ps1

    Greetings MOW
  • Monday, November 02, 2009 1:24 PMValery Tyurin Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Almost true.

    >add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010

    It's work. Thank you very much.
    Truly, Valery Tyurin