Powershell调用RemoteExchange.ps1

 

If ((Get-PSSnapin | where {$_.Name -match "Microsoft.Exchange.Management.PowerShell.E2010"}) -eq $null)
{
    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
. $env:ExchangeInstallPath\bin\RemoteExchange.ps1 
Connect-ExchangeServer -auto -AllowClobber
}

 

posted @ 2017-06-24 15:43  寻香径  阅读(886)  评论(0编辑  收藏  举报