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
- For the VM to work, you need to open port 3389 (TCP), in the network properties in Azure Firewall.
- 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”.
- In the window that appears, enter the IP of the virtual machine and click “Connect”.
- In the window that appears, enter your username and password and click “OK”.
- Check the box and click “Yes”.
- In the opened console, you will see 15 commands. To run PowerShell, enter 15.
Active Directory module for Windows PowerShell
- To check available services, enter Get-WindowsFeature -Name *web*
- To install Active Directory Domain Services, type Add-WindowsFeature AD-Domain-Services and press Enter.
- To create a new forest and domain named vdom.local type Install-ADDSForest -DomainName vdom.local -InstallDNS and press Enter
- 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.
- Type A and press Enter to configure the server as a domain controller and install DNS.
- The domain controller promotion will be complete, and the server will be rebooted, finalizing the process.
To learn more – Active Directory module for Windows PowerShell