Город МОСКОВСКИЙ
00:20:10

Active Directory | Classroom 3 | Install Active Directory in Server 2019 via POWERSHELL and GUI

Аватар
Молодежный Python-пионер
Просмотры:
22
Дата загрузки:
02.12.2023 22:08
Длительность:
00:20:10
Категория:
Технологии и интернет

Описание

This is a step-by-step guide to install Active Directory Domain Services using Server Manager (GUI) and Powershell.

00:43 - In Server Manager, we will start the "Add Role and Features" wizard to install feature Active Directory its sub-features, and management tools. Then we will promote this to a Domain Controller.
A new forest with root domain "teqtalk.lab" is created with Forest and Domain Functional levels set to "Server 2016". We will also install a DNS server role to manage the domain.


08:09 - From Server Manager we will run "Remove Role and Features" we will de-select Active Directory and DNS roles. A window to Demote the server from Domain Controller will pop up. We will run the wizard,
we will select "Force Remove" the Domain Controller which will also result to delete the Forest "teqtalk.lab" to get deleted. Once the server is demoted from Domain Controller we will again run
the "Remove Roles and Features" to uninstall the Active Directory and DNS roles.


12:17 - Powershell version 5.1 and above with ActiveDirectory module installed. Check it by running the command "Get-InstalledModule -Name ActiveDirectory", if not installed then run "Import-Module ActiveDirectory"

We will start the Powershell in administrative mode, and run the command "Get-WindowsFeatures" to list all the available & installed Features. Features that are installed have a [X] mark.
Note the name of the features that will be installed, here we will install "AD-Domain-Services" and "DNS" features along with their sub-features and management tools.

Install-WindowsFeature '
-Name AD-Domain-Services, DNS '
-IncludeAllSubFeature '
-IncludeManagementTools

Next, we need to promote this to a Domain Controller by using one of the below three commands:
Install-ADDSForest : To create a new forest, as this will be the first Domain Controller of the forest
Install-ADDSDomainController: To add a Domain Controller in an existing domain.
Install-ADDSDomain: To create a new domain tree or to create a new child domain.
We will run the below command to create a new forest with the root domain "teqtalk.lab"

Install-ADDSForest '
-DomainName "teqtalk.lab" '
-DomainNetbiosName "TEQTALK" '
-DomainMode "WinThreshold" '
-ForestMode "WinThreshold" '
-InstallDns '
-LogPath "C:\Windows\NTDS" '
-DatabasePath "C:\Windows\NTDS" '
-SysvolPath "C:\Windows\SYSVOL" '
-NoRebootOnCompletion

https://social.technet.microsoft.com/wiki/contents/articles/52765.windows-server-2019-step-by-step-setup-active-directory-environment-using-powershell.aspx


Check out all classrooms of Python Tutorials: from Beginner to Advanced:
https://www.youtube.com/watch?v=b9bnyURdx0M&list=PLZtKPOfKzOAsG6YtS4qKIb8oyjugJgLQV

Check out all classrooms of Microsoft Word Tutorial (Beginner level):
https://www.youtube.com/watch?v=NvS-q3w-ewM&list=PLZtKPOfKzOAsVbZuIN0XTzWgQqaAmDHJ5

Check out all classrooms of Microsoft Excel Tutorial (Beginner level):
https://www.youtube.com/watch?v=kw4542LxPkc&list=PLZtKPOfKzOAumd4rRNUQJ_uQHv_Y9S9fv

Check out all classrooms of Microsoft PowerPoint Tutorial (Crash Course):
https://www.youtube.com/watch?v=ubmgoUEXtBg&list=PLZtKPOfKzOAvXaUb720ehLbky33gjyLGw

Рекомендуемые видео