Skip to main content

Microsoft Windows Server 2019 Core as Domain Controller

It is time to run AD DS, DNS, DHCP services on Microsoft Windows Server 2019 Core.

Preparation steps

  • Download ISO file and prepare USB flash drive
  • Install operation system
  • Run sconfig and complete all steps before moving on

Get a list of AD features

Powershell: Get-WindowsFeature *AD*

Install AD DS and management tools

Powershell: Install AD DS

Install AD DS Forest

Install AD DS Forest

Verify and check what other features are installed

Get-WindowsFeature | ? "Installed"
Server 2019: Check what services/features are installed

Popular posts from this blog

GNS3: Notes

As usual, notes is for myself and might be useful and also save time for beginners start using GNS3 .

Commonly used shortcut keys

Learn and use common shortcuts. Shortcuts for all Windows applications Shortcut Action CTRL + C Copy CTRL + X Cut CTRL + V Paste CTRL + Z Undo Shortcuts in Microsoft Outlook Shortcuts in Microsoft Outlook Shortcut Action CTRL + Q Mark as read CTRL + SHIFT + K New task CTRL + SHIFT + J New journal Shortcuts in notepad++ Shortcuts in notepad++ Shortcut Action CTRL + L Delete current line CTRL + Q Comment block Shortcuts in Google Docs, Google Sheets Shortcuts in Google Docs, Google Sheets Shortcut Action CTRL + / Display keyboard shortcuts

Powershell: Get-ADUser

# Users last logon more than 180 days PS C:\Windows\system32> Import-Module ActiveDirectory PS C:\Windows\system32> $today = Get-Date -Format yyyyMMdd PS C:\Windows\system32> $date = (Get-Date).AddDays(-180) PS C:\Windows\system32> Get-ADUser -Filter {LastLogonDate -lt $date} -Properties * | Select Name,SamAccountName,Office,LastLogonDate | Sort-Object Office | Export-Csv -Path C:\Audit\last-logon-180-days-$today.csv  -NoTypeInformation