标签:style http color io os ar for sp art
$User = "admin@contoso.com"
$PWord = ConvertTo-SecureString –String "password" –AsPlainText -Force
$Credential = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $PWord
Import-Module MSOnline
Connect-MsolService -Credential $Credential
$sessionOption = New-PSSessionOption -SkipRevocationCheck
$ExchangeShell = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/PowerShell-LiveID?PSVersion=2.0 -Credential $Credential -Authentication Basic -AllowRedirection -SessionOption $sessionOption
$importresults = Import-PSSession $ExchangeShell
by
http://www.smallrascal.cn/smallrascal/article.asp?id=2080
标签:style http color io os ar for sp art
原文地址:http://www.cnblogs.com/SignalTips/p/4025778.html