This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Scriptausführung in der Powershell aktivieren | |
set-executionpolicy RemoteSigned | |
# | |
#Verbindung mit Exchange aufbauen | |
$cred = Get-Credential | |
# | |
#Session eröffnen | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection | |
# | |
#Commandlets importieren |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cred = Get-Credential | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection | |
Import-PSSession $Session | |
Get-OrganizationConfig | Format-List AdminDisplayVersion | |
Remove-PSSession $Session |