How to create a certificate request for Exchange 2019

How to create a certificate request for Exchange 2019
Change the script below and you'll have a signed certificate in no time for Exchange 2019. This also works for Exchange 2016, but there you can still use the GUI. # Vars $serverName = "YourServerName" $friendlyName = "FriendlyName" $exportable = "$True | $False" $subjectName = "c=COUNTRY, s=STATE, l=CITY, o=ORGANIZATION, ou=DEPARTMENT,…

Upload user photos in Active Directory and Entra AD

Upload user photos in Active Directory and Entra AD
A simple PowerShell script that imports user photos into Active Directory. After an Entra AD Sync it will push the same images to towards Azure, Office 365 (Teams, Exchange, The user photos need to be 80x80 with a max filesize of 100kb! Important! $transcriptLog = "C:\Scripts\ImportThumbnail\log.txt" if (Test-Path $transcriptLog) {…

How to mass change the primary group of users in active directory with PowerShell

How to mass change the primary group of users in active directory with PowerShell
Introduction This very simple PS code will allow you to change the primary group of a group of users and report back who the users are you've changed through the script. Code Start-Transcript "C:\Users\UserName\Downloads\PrimaryGroupChange.log" $newPrimaryGroup = get-adgroup "NewPrimaryGroupHere" -Properties "primaryGroupToken" $oldPrimaryGroup = get-adgroup "OldPrimaryGroupHere" -Properties "primaryGroupToken" $tempUsers = get-aduser -Filter…