Exchange Online PowerShell

Aus abotpedia
Wechseln zu: Navigation, Suche

<syntaxhighlight lang=powershell>$UserCredential = Get-Credential</syntaxhighlight>

<syntaxhighlight lang=powershell>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection</syntaxhighlight>

<syntaxhighlight lang=powershell>Import-PSSession $Session</syntaxhighlight>

<syntaxhighlight lang=powershell>Remove-PSSession $Session</syntaxhighlight>