Verbinding maken met alle Microsoft 365-services in een enkel PowerShell-venster – Microsoft 365 Enterprise | Microsoft Docs
January 2021
O365 – Change default security settings
Azure Active Directory security defaults | Microsoft Docs
O365 – Powershell connect once
Because I’m testing I made this, so I dont need to fill in everytime the credentials, but checks if there is a connection. AzureAD Connect if($azureConnection.Account -eq $null){$azureConnection = Connect-AzureAD}…
Disable Password Expiration Azure AD
Connect-AzureADSet-AzureADUser -ObjectId <SyncACCOUNT>@<DOMAIN>.onmicrosoft.com -PasswordPolicies DisablePasswordExpiration And if you want all online created accounts disable Password expiration:Get-AzureADUser -All $true | Set-AzureADUser -PasswordPolicies DisablePasswordExpiration