Exchange Powershell - How to invoke Exchange 2010 module from inside script?

前端 未结 3 862
有刺的猬
有刺的猬 2021-01-02 05:36

I\'m writing a script that does a number of things with AD and Exchange and just got to the part of the GUI where I need to start working with Exchange but don\'t see where

3条回答
  •  心在旅途
    2021-01-02 06:15

    You can do this:

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

    and most of it will work (although MS support will tell you that doing this is not supported because it bypasses RBAC).

    I've seen issues with some cmdlets (specifically enable/disable UMmailbox) not working with just the snapin loaded.

    In Exchange 2010, they basically don't support using Powershell outside of the the implicit remoting environment of an actual EMS shell.

提交回复
热议问题