Office 365 und Exchange Online mit der PowerShell steuern
Zitat von mpca am 30. November 2021, 9:34 Uhrhttps://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:
https://activedirectorypro.com/connect-to-exchange-online-with-powershell/
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 | flGet-Mailbox askywalker | Set-MailboxRegionalConfiguration -LocalizeDefaultFolderName:$true -Language de-DE
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:
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