Guide

Create a named domain admin account

If everyone uses the built-in Administrator account, nobody can tell who did what, and one stolen password gives away the domain. Give each administrator their own admin account and keep Administrator for emergencies.

15 minutesRun as CONTOSO\Administrator on CON-DC-01
What improves

Admin work is tied to a named person, on a protected account.

Why it matters

A shared Administrator account hides who did what, and one stolen password gives away the domain.

How you do it

Create a .da account, add it to Domain Admins and Protected Users, and test the sign-in.

Before you start

  • Keep admin accounts in their own OU, outside anything that syncs to Microsoft 365. This guide uses CON-Admins.
  • The account is for admin work only. The person keeps a separate everyday account for email and teaching.

Create the account

PowerShell asks you to type the password, so it is never saved in a script.

CON-DC-01
$pw = Read-Host -AsSecureString 'Password for j.smith.da'
New-ADUser -Name 'j.smith.da' -SamAccountName 'j.smith.da' `
    -UserPrincipalName 'j.smith.da@ad.contoso.com' -DisplayName 'Jane Smith (Domain Admin)' `
    -Path 'OU=CON-Admins,OU=Contoso School,DC=ad,DC=contoso,DC=com' `
    -AccountPassword $pw -Enabled $true -AccountNotDelegated $true `
    -Description 'Named domain admin. Not for email or daily work.'
PartMeaning
.daMarks it as a domain admin account at a glance.
@ad.contoso.comThe internal domain name, so nobody mistakes it for an email address.
AccountNotDelegatedStops other servers acting on this account's behalf.

Give it admin rights and protect it

CON-DC-01
Add-ADGroupMember -Identity 'Domain Admins'   -Members 'j.smith.da'
Add-ADGroupMember -Identity 'Protected Users' -Members 'j.smith.da'
What Protected Users changes

The account signs in with Kerberos only. Connect to servers by name, not IP address. It cannot sign in to a computer that cannot reach a domain controller.

Check it

CON-DC-01
Get-ADUser j.smith.da -Properties MemberOf, AccountNotDelegated |
    Format-List SamAccountName, UserPrincipalName, Enabled, DistinguishedName, AccountNotDelegated, MemberOf

Sign in with it

Sign out, sign in to the domain controller as CONTOSO\j.smith.da, and run:

CON-DC-01
whoami
whoami /groups | Select-String 'Domain Admins|Protected Users'

Both groups should be listed. Do not go further until this sign-in works.

The built-in Administrator

Leave Administrator out of Protected Users. It is the account you fall back on when something is broken. Give it a long password, store it sealed, and stop using it day to day.

Done when

Check

You can sign in to a domain controller as the named admin and whoami /groups lists Domain Admins and Protected Users.

Your progress is kept in this browser only.