Usage Guidelines – Active Directory on Windows Server 2022 Minimal

Active Directory

Windows Server 2022 Minimal

The guide on how to use Active Directory on Windows Server 2022 Minimal

      To start the server, start the virtual machine through Azure

  1. For the VM to work, you need to open port 3389 (TCP), in the network properties in Azure Firewall.
  1. To connect to the virtual machine, run the “Remote Desktop Connection” shortcut by pressing “Win + R”. In the window that appears, enter “mstsc” and click “OK”.
  1. In the window that appears, enter the IP of the virtual machine and click “Connect”.
  1. In the window that appears, enter your username and password and click “OK”.
  2. Check the box and click “Yes”.
  1. In the opened console, you will see 15 commands. To run PowerShell, enter 15.

Active Directory module for Windows PowerShell 

  1. To check available services, enter Get-WindowsFeature -Name *web*
  1. To install Active Directory Domain Services, type Add-WindowsFeature AD-Domain-Services and press Enter. 
HOW10253_en_US__7W_ps_install forest 1_JM_V1
  1. To create a new forest and domain named vdom.local type Install-ADDSForest -DomainName vdom.local -InstallDNS and press Enter 
  1. Type the Directory Services Restore Mode (DSRM) password twice and press Enter to save the password. The DSRM password is referred to as the SafeModeAdministratorPassword in Windows PowerShell.
HOW10253_en_US__8W_ps_install forest 2_JM_V1
  1. Type A and press Enter to configure the server as a domain controller and install DNS.
HOW10253_en_US__10W_ps_install forest 3_JM_V1
  1. The domain controller promotion will be complete, and the server will be rebooted, finalizing the process.
HOW10253_en_US__11W_ps_install forest 4_JM_V1

To learn more – Active Directory module for Windows PowerShell