O365 – DKIM signing

how to sign O365-Mails using DKIM Set-ExecutionPolicy RemoteSigned [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-PackageProvider -Name NuGet Install-Module -Name ExchangeOnlineManagement Update-Module -Name ExchangeOnlineManagement Import-Module ExchangeOnlineManagement $o365Cred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $o365Cred -Authentication Basic -AllowRedirection Set-ExecutionPolicy RemoteSigned Import-PSSession $Session Enable-OrganizationCustomization New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management" Remove-PSSession $session Disconnect-ExchangeOnline # DKIM...
general mail

Bitlocker – get encryption status

@echo off@echo Start: %date% %time%echo %computername%manage-bde -status %systemdrive% -pIf errorlevel 0 goto error0If errorlevel -1 goto error-1Goto end:error0echo %systemdrive% is encryptedGoto end:error-1echo %systemdrive% is not encryptedGoto end:end@echo End: %date% %time%exit
bat general windows