locked
How to add exchange 2010 PSSnapin to ISE? RRS feed

  • Question

  • Hello. I am like to use ISE for powershell. Can I add exchange 2010 pssnapin to ISE? How?
    Truly, Valery Tyurin
    Friday, October 30, 2009 1:50 PM

Answers

  • 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
    • Marked as answer by Valery Tyurin Monday, November 2, 2009 1:23 PM
    Friday, October 30, 2009 3:31 PM

All replies

  • 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 2:23 PM
  • Not clear to my. What is the name exchange 2010 snapin?
    Truly, Valery Tyurin
    Friday, October 30, 2009 3:12 PM
  • 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:25 PM
  • 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
    • Marked as answer by Valery Tyurin Monday, November 2, 2009 1:23 PM
    Friday, October 30, 2009 3:31 PM
  • Almost true.

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

    It's work. Thank you very much.
    Truly, Valery Tyurin
    • Proposed as answer by JBDynamics Thursday, May 27, 2010 9:38 PM
    Monday, November 2, 2009 1:24 PM
  • Agreed.  I had the same issue and

     

    RemoteExchange.ps1

    followed by

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

    worked for me.

     

    • Proposed as answer by Skruphy9 Tuesday, May 7, 2013 6:05 PM
    Thursday, September 1, 2011 8:39 PM
  • Also:

    Add-PSSnapin Microsoft.Exchange.Management.Powershell.Support

    then

    PS C:\Program Files\Microsoft\Exchange Server\V14\Bin> .\Exchange.ps1

    • Proposed as answer by Carlo Merhi Tuesday, January 23, 2018 6:44 PM
    Monday, January 7, 2013 12:10 AM
  • I inserted the following 2 command in the ISE Profile (notepad $profile)

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

    & $env:ExchangeInstallPath\bin\Exchange.ps1

    For my envirionment (Ex2010 Sp3) that works fine

    Microsoft.Exchange.Management.Powershell.Support alone gave an error on Set-ADServerSettings

    Friday, July 15, 2016 9:43 AM
  • that worked for me as well

    Friday, July 6, 2018 9:02 PM