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
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
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}
# 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
# 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 with MFA
Connect-MicrosoftTeams -AccountId “mail@joernwalter.de”
Ein Kommentar
Kommentare sind geschlossen.