Knowledge Base

Bitte , um Beiträge und Themen zu erstellen.

Office 365 und Exchange Online mit der PowerShell steuern

https://opalbiz.com/microsoft/connecting-to-office365exchange-online-via-powershell/
https://www.computerweekly.com/de/tipp/Office-365-und-Exchange-Online-mit-der-PowerShell-steuern

 

Open Powershell as administrator
Set-ExecutionPolicy Remotesigned
Type Y for yes
$UserCredential = Get-Credential
Sign in with O365 administrator account (user@company.com)
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $user -Authentication Basic -AllowRedirection
Import-PSSession $session
Install-Module -Name AzureAD
Install-Module MSOnline

####

Mit MFA aktiv:

Connect to Exchange Online with PowerShell (MFA Support)

Install-Module -Name ExchangeOnlineManagement
Set-ExecutionPolicy Unrestricted
Connect-ExchangeOnline
Im aufgehenden Webfenster credentials mit MFA eingeben

Sprache der Mailbox auf DE ändern inkl. Std. Folder
Get-Mailbox askywalker | Get-MailboxRegionalConfiguration | fl

Get-Mailbox askywalker | Set-MailboxRegionalConfiguration -LocalizeDefaultFolderName:$true -Language de-DE