Verbinding maken met alle Microsoft 365-services in een enkel PowerShell-venster – Microsoft 365 Enterprise | Microsoft Docs
Uncategorized
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
Print spooler is crashing
Printspooler is crashing because of a wrong printerdriver. Remove printer in register:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors And start Printspooler service
Install Fonts with Powershell
$ssfFonts = 0x14 $fontSourceFolder = "" $Shell = New-Object -ComObject Shell.Application $SystemFontsFolder = $Shell.Namespace($ssfFonts) $FontFiles = Get-ChildItem $fontSourceFolder $SystemFontsPath = $SystemFontsFolder.Self.Path $rebootFlag = $false foreach($FontFile in $FontFiles) { # $FontFile…
AD Send mail on password reset
This is based on Security Event ID 4724. When this is logged on the domain controller, Task Scheduler kicks this script. And send a mail to Admin and user. And…