O365 – Change default security settings
Azure Active Directory security defaults | Microsoft Docs
Azure Active Directory security defaults | Microsoft Docs
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}…
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
Printspooler is crashing because of a wrong printerdriver. Remove printer in register:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors And start Printspooler service
$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…
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…