AzureAD Install and Connect
Connect with and without MFA
Je nachdem welche Richtlinie zugrunde liegt, muss die Anmeldung mit oder ohne MFA erfolgen. Hier mehr zu der modernen Authentifizierung.
AzureAD Install and Connect
AzureAD Install and Connect
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
# Install the AzureADPreview
Install-Module -Name AzureADPreview -AllowClobber -Verbose -Force
# Connect without MFA
$cred = Get-Credential
Connect-AzureAD -Credential $cred
# Connect with MFA
Connect-AzureAD -AccountId „mail@joernwalter.de“
# Install the AzureAD
Install-Module -Name AzureAD -AllowClobber -Verbose -Force
# Connect without MFA
$cred = Get-Credential
Connect-AzureAD -Credential $cred
# Connect with MFA
Connect-AzureAD -AccountId „mail@joernwalter.de“
# Did it work
Get-AzureADUser
MSOnline Install and Connect with MFA
Install-Module MSOnline -AllowClobber -Force -Verbose
Connect-MsolService
Get-MsolAccountSku
Get-AzureADSubscribedSku | Select SkuPartNumber
Get-AzureADUser -ObjectID mail@joernwalter.de | Select DisplayName, UsageLocation
(Get-MsolAccountSku | where {$_.AccountSkuId -eq „ndsedv:ATP_ENTERPRISE“}).ServiceStatus
Get-MsolUser -UserPrincipalName mail@joernwalter.de | Format-List DisplayName,Licenses
(Get-MsolUser -UserPrincipalName mail@joernwalter.de).Licenses.ServiceStatus
Get-MsolUser -All -UnlicensedUsersOnly
Get-MsolUser -All | where {$_.UsageLocation -eq $null}
Connect with EXO Modul without MFA
# We need the Exchange Online Modul
Install-Module -Name ExchangeOnlineManagement -Verbose -AllowClobber -Force
# Create a variable with Credentials and Connect without MFA
$cred = Get-Credential
Connect-ExchangeOnline –Credential $cred
# Did it work
Get-Mailbox
Connect Microsoft Teams without MFA
# Install Teams Module
Install-Module -Name MicrosoftTeams -AllowClobber -Verbose -Force
# Create a variable with Credentials and Connect
$cred = Get-Credential
Connect-MicrosoftTeams –Credential $cred
Connect Microsoft Teams with MFA
# Connect with MFA
Connect-MicrosoftTeams -AccountId „mail@joernwalter.de“





1 Kommentar