Install Active Directory Users and Computers Windows Server 2022 PowerShell
“Active Directory Users and Computers” is a management console used to administer Active Directory (manage users, groups, computers, polices, etc.). Show
By default, it is deployed on a Windows Server host, when it’s promoted to the domain controller during the “Active Directory Domain Services” role installation. But the “Active Directory Users and Computers” can also be installed on a Windows computer manually through a graphical user interface (GUI) or using a Windows PowerShell and this note shows how to do this. Cool Tip: Check if the computer is in a domain! Read more → Install “Active Directory Users and Computers”Depending on a way you are trying to start the “Active Directory Users and Computers” you may get one of the following errors if it is not installed:
Info: The “Active Directory Users and Computers” is a part of “RSAT: Active Directory Domain Services and Lightweight Directory Tools”. To install the “Active Directory Users and Computers”, it is required to enable the Windows feature, called “RSAT: Active Directory Domain Services and Lightweight Directory Tools”:
Alternatively you can install the “Active Directory Users and Computers” on Windows by enabling the “RSAT: Active Directory Domain Services and Lightweight Directory Tools” using the Windows PowerShell. To avoid “The requested operation requires elevation” error, start the PowerShell as an administrator: press ⊞ Win keybutton to open the “Start” menu, type in List all the available “Remote Server Administration Tools” (RSAT): PS C:\> Get-WindowsCapability -Name RSAT* -Online | Select-Object -Property Name, State Name State ---- ----- Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 NotPresent Rsat.BitLocker.Recovery.Tools~~~~0.0.1.0 NotPresent Rsat.CertificateServices.Tools~~~~0.0.1.0 NotPresent Rsat.DHCP.Tools~~~~0.0.1.0 NotPresent Rsat.Dns.Tools~~~~0.0.1.0 NotPresent ... The “Active Directory Users and Computers” tool is included into the “Active Directory Domain Services (DS) and Lightweight Directory Services (LDS) Tools” that is named “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0” (see the output above of the command above). So to install the “Active Directory Users and Computers” from the PowerShell, it is required to install the AD DS and LDS tools i.e. “Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0”: Are you tired of managing Active Directory using the graphical interface? Then you might be interested in the Active Directory PowerShell module! This module gives you the ability to manage Active Directory using commands in PowerShell. Harnessing the module opens up the possibilities of automating management tasks like user creation and removal. Get the free PowerShell and Active Directory Video CourseIn this post, you will learn more about the Active Directory PowerShell module, installing the module on different Windows operating systems, and importing the module into a PowerShell console. To follow along with this tutorial, you will need:
What is the PowerShell Active Directory Module?The Active Directory PowerShell module consolidates a group of cmdlets used to administer on-premises Active Directory. You use these cmdlets for domain management and managing users, groups, and objects. Need to manage Azure Active Directory or Office 365? Check out Jeff Brown's article How to Connect to Office 365 PowerShell (Azure AD Modules)! While you can manage your environment using graphical interfaces (like Active Directory Users and Computers), PowerShell provides the ability to make changes at scale. You issue PowerShell commands that can iterate through a user list to modify an attribute much faster than the graphical interface. The Active Directory PowerShell module is automatically installed on domain controllers in your environment. However, if you want to manage your Active Directory environment remotely, you need to install the module on your system. The following sections outline multiple ways to install the modules based on your operating system. How to Install Active Directory PowerShell ModuleInstalling the PowerShell module is not standardized across Microsoft's multiple Windows operating systems. Review the sections below and find the method that fits your scenario! Installation on Windows 10The procedure for installing the Active Directory PowerShell module depends on the Windows 10 version. To determine your version of Windows 10:
To see a complete list of Windows 10 versions and release dates, check out this article from Microsoft: Microsoft Docs | Windows 10 - Release Information Installing on Windows 10 Prior to Version 1809Before Windows 10 version 1809, Microsoft made the Active Directory PowerShell module available through the Remote Server Administration Tools for Windows 10. This software install includes the module as well as several other remote management features.
Installation for Windows 10 version 1809 and laterIn October 2018, Microsoft released Windows 10 version 1809, which changed how you install the Active Directory PowerShell Module. The RSAT Tools for Windows 10 are now part of the operating system and are an optional installation feature. There are two installation methods available for these later versions. Method 1: Install via Settings App To install the RSAT Tools using the Settings app:
Method 2: Install via PowerShell A second option is to enable the same feature from Method 1 using PowerShell.
Installing on Windows Server (Multiple Versions)While Windows 10 has different installation procedures based on version, Windows Server has maintained the same installation method across multiple versions. While this tutorial focuses on Windows Server 2019, these methods should be valid for other versions such as:
Method 1: Install via Add Roles and Features
Method 2: Install via PowerShell
Install-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature
Install-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature
How to Import Active Directory PowerShell ModuleWhile there are many installation methods, there is only one way to import the module! The following steps are valid for both Windows 10 and all server versions. To import the Active Directory PowerShell module:
Success! You have installed and imported the Active Directory PowerShell module! PowerShell Active Directory Module FAQsWhat is Active Directory Module for PowerShell?The Active Directory PowerShell module is a set of cmdlets used for managing Active Directory domains and objects. You can install the module on Windows operating systems like Windows 10 and Windows Server. How do I import the Active Directory PowerShell module?Use the Import-Module cmdlet with the -Name ActiveDirectory parameter and value. How do I install the Active Directory PowerShell module on Windows Server?In a PowerShell console, run the command Install-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature. ClosingThe Active Directory PowerShell module is a powerful tool for administrators. In this article, you learned how to install the module on non-domain controller systems for remote management. Next, explore all the commands in the module to see what tasks you can automate! Want to learn more about PowerShell scripting for Active Directory? Check out Michael Buckbee's article How to Get Started with PowerShell and Active Directory Scripting! We're Varonis. We've been keeping the world's most valuable data out of enemy hands since 2005 with our market-leading data security platform. Jeff BrownJeff Brown is a cloud engineer specializing in Microsoft technologies such as Office 365, Teams, Azure and PowerShell. You can find more of his content at https://jeffbrown.tech. How to Install Active Directory Users and Computers with PowerShell?Click Start -> Settings -> Apps.. In the Apps & Features window, click Optional Features.. Click on Add a Feature and select RSAT: Active Directory Domain Services and Lightweight Directory Services Tools from the options.. Select Install.. How to Install Active Directory Users and Computers Windows Server 2022?Install Active Directory Domain Services in Windows Server 2022. Step 1: Open Server Manager. ... . Step 2: Add Roles and Features. ... . Step 3: Installation Type. ... . Step 4: Server Selection. ... . Step 5: Server Roles. ... . Step 6: Add Features. ... . Step 7: Select Features. ... . Step 8: AD DS.. How to Install Active Directory Users and Computers?To install Active Directory Users and Computers on Windows 10 and Windows 11, open the Settings app and go into Apps. From there, add the 'RSAT: Active Directory Domain Services and Lightweight Directory Services Tools' optional feature.
Does Windows Server 2022 have Active Directory?Windows Server 2022: Deploy and Manage Active Directory Domain Services. Active Directory and Azure AD form the core of hybrid identity in the Microsoft technology stack.
|