header1   header
header
header : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
IMPORTANT: PowerShellCommunity.org is moving! - Wednesday, August 15, 2012

PowerShellCommunity.org is moving!  This community software, and the hardware that it sits on, are no longer serving the purposes of this community.  As a result, we have decided to move this community to a new home at PowerShell.org.  PowerShell.org is already up and running with the new community software and in its new location, so please post any new questions that you have on the forums over there instead of posting them on this site.  We've already started getting some great questions from members of the community over there so please, come on over and join us!

While we are going through this transition, this site will remain up for the short term.  New posts may no longer be created on these forums, however replies to existing posts are allowed so that users who posted questions don't have to re-post the same question on the new site.

[UPDATE 28/02/2013] New user registration has been disabled and forums have now been switched to read-only, including for existing posts since all threads that were started should now be completed. If you have a question about content on this site or about PowerShell in general, head over to PowerShell.org and ask it there where there are people actively using the site and answering questions.

If you have any questions, please let us know on the PowerShell.org site.

Thank you,

Kirk "Poshoholic" Munro

 
Adding the Exchange Management Powershell Snapin
Last Post 21 Sep 2012 05:59 AM by Saurabh. 19 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
msib7User is Offline
New Member
New Member
Posts:12
Avatar

--
12 Jul 2010 03:09 AM
    I think I'm missing something simple here...I read a number of articles that say to load the exchange management snapin to powershell I should run:

    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin

    This just returns an error:

    AddSnapin: The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this machine.

    I've also tried 'get-pssnapin' and 'get-pssnapin - registered' but no mention of Microsoft.Exchange.Management.PowerShell.Admin

    Is this snapin something I have to download and install? Any info would be great.

    Many thanks
    Mehds


    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    12 Jul 2010 03:27 AM
    You need to download and install the Microsoft Exchange Server 2007 Management Tools (32-Bit):

    http://www.microsoft.com/downloads/...laylang=en

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    msib7User is Offline
    New Member
    New Member
    Posts:12
    Avatar

    --
    12 Jul 2010 05:24 AM
    Thanks for the link....is there not one thats compatible with Exchange 2003?
    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    12 Jul 2010 05:40 AM
    No, this functionality is not available for Exchange 2003. PowerShell support was only added as of Exchange 2007. You can however use PowerShell to manage Exchange 2003, but must use something like WMI to interact with Exchange.
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:467
    Avatar

    --
    12 Jul 2010 05:58 AM
    You can download the free PowerGUI:
    http://powergui.org/index.jspa

    And, add the PowerGUI Exchange 2003 Power Pack:
    http://www.powergui.org/entry.jspa?...egoryID=47

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    12 Jul 2010 05:59 AM
    Yes, PowerGUI will help with automation. It uses WMI under the covers for Exchange 2003...
    msib7User is Offline
    New Member
    New Member
    Posts:12
    Avatar

    --
    12 Jul 2010 08:54 AM
    Many thanks Karl and Marco for the links and advice, I'm having a play with the Exchange 2003 Power Pack now.
    kvrUser is Offline
    New Member
    New Member
    Posts:1
    Avatar

    --
    25 Aug 2010 10:24 PM


    TanmayUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    03 Sep 2010 01:15 AM
    Hi friends
    when I run
    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
    on exchange server 2007 cmd shell it say it is already ready registered

    and it is so because it is already registered on ps1.0

    well I want it to be registered on PS2.0

    Please help me

    Thanks in advance
    isdadminUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    20 Jul 2011 04:56 PM

    I am running exchange 2010

    and trying to use TSM for Mail to backup.

    when i open the TSM Gui

    i get the error
    The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this machine.

    How do i download and install?

    Marco ShawUser is Offline
    Veteran Member
    Veteran Member
    Posts:1684
    Avatar

    --
    20 Jul 2011 05:14 PM
    You have to get the entire Exchange 2010 install ISO image and install only the administration tools.

    PS You should start a new thread if you have questions.
    isdadminUser is Offline
    New Member
    New Member
    Posts:2
    Avatar

    --
    20 Jul 2011 05:45 PM
    i already have the tools installed..
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:467
    Avatar

    --
    21 Jul 2011 06:47 AM
    Exchange 2010 does not provide a snap-in named 'Microsoft.Exchange.Management.PowerShell.Admin'.
    Exchange 2010 provides the "Microsoft.Exchange.Management.PowerShell.E2010" and "Microsoft.Exchange.Management.Powershell.Support" snap-ins.

    See if this helps:
    http://tsmclinic.blogspot.com/2010/...ge_22.html

    I'd really talk to IBM and see about getting a working backup soloution though.... Or see what their support says

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    JamesUser is Offline
    New Member
    New Member
    Posts:1
    Avatar

    --
    08 Dec 2011 11:52 AM
    Never mind, found the error, wrong instance was being called (x86).
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:467
    Avatar

    --
    08 Dec 2011 12:14 PM
    The 64 bit tools are installed from the Exchange 2007 DVD or .ISO file.

    Note that you need to be running Exchange Server 2007 SP3 or better to have the tools supported on Windows 7....

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    SaurabhUser is Offline
    New Member
    New Member
    Posts:3
    Avatar

    --
    18 Sep 2012 03:04 AM
    I am also getting the same error
    The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this machine.
    when trying to run command Add-PSSnapin Microsoft.Exchange.Management.Powershell.Setup
    I have Exchange 2010 server and management tools are installed. Please help. Thanks.
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:467
    Avatar

    --
    18 Sep 2012 06:14 AM
    See my post from 21 July 2011 - there is NO snap-in named "Microsoft.Exchange.Management.PowerShell.Admin" provided with Exchange 2010.

    Search (BING or Google) Remote Exchange 2010 Management...

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:467
    Avatar

    --
    18 Sep 2012 06:21 AM
    You should also pay attention to the important announcement on the top of the page :)
    Also, while I am at it, since you have the Exchange Management tools loaded, why not use the Exchange Management Shell?

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    SaurabhUser is Offline
    New Member
    New Member
    Posts:3
    Avatar

    --
    21 Sep 2012 05:58 AM
    Hi Karl, Thanks for your reply. :) It was a typo in my last post. I didn't mean "Admin Snap-in", actually I am looking for "Setup Snap-in". I have to install few performance counters from Exchange setup but for which first I need to load Microsoft.Exchange.Management.Powershell.Setup snap-in. But whenever I am trying to run Add-PSSnapin command I am getting error saying "Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Exchange.Management.Powershell.setup' is not installed on this machine." . I checked same command on another server having same configuration and same role where it runs successfully. When I check both servers by running command Get-PSSnapin -Registered I received three snapin on second machine which includes "Setup" snapin while the affected machine returns just two and "Setup" snapin is missing. Please help as I am lost from here :( Thanks in Advance.
    SaurabhUser is Offline
    New Member
    New Member
    Posts:3
    Avatar

    --
    21 Sep 2012 05:59 AM
    Just to add on I have Exchange Poershell 1.0 installed on servers. Thanks.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Many thanks to our original sponsors: Quest Software • SAPIEN Technologies • Compellent • Microsoft footer
    footer   footer