How to create and manage the Central Store for Group Policy Administrative Templates in Windows server

How to create and manage the Central Store for Group Policy Administrative Templates in Windows server
Download the latest ADMX version from MS → Create and manage Central Store - Windows Client Unpack it on on your domain server or preferably management server Copy only; the *.admx files from the root folder to a new folder called “filtered” the en-us (and/or any other language file you…

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…

Active Directory reset adminCount back to 0

Active Directory reset adminCount back to 0
Introduction The PS code below will find admin accounts in your Active Directory that have an adminCount higher than 0 and reset it back to 0, always verify why the count was increased! Code get-aduser -Filter {admincount -gt 0} -Properties adminCount | Set-Aduser -UserPrincipalName $_.UserPrincipalName -Replace @{adminCount=0}