Would you like to learn how to create a group using Powershell? In this tutorial, we are going to show you how to use Powershell to create a group on the Active Directory.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Create a group on Active Directory
As an Administrator, start a new Powershell command-line.
Create a group on the Active Directory.
In our example, we created a domain group named MYGRP.
The new group will be created in the Active Directory organizational unit named Users.
Verify the existence of the new group.
Here is the command output:
Add members to a group.
List the group members.
Here is the command output:
Congratulations! You are able to create a group on the Active Directory using Powershell.
Tutorial Windows 10 – Installing the Active Directory Powershell modules
If your computer does not recognize the commands used, you need to install the Powershell modules for the Active Directory included on the RSAT package.
As an administrator, open the Start menu and access the Settings option.
Access the Apps settings.
Access the optional features screen.
Select the option to Add a feature.
Search and install the following package.
• RSAT: Active Directory Domain Services and Lightweight Directory Services Tools.
Congratulations! You have finished the installation of the Powershell modules to manage the Active Directory on Windows 10.
Tutorial Windows 10 – Installing the Active Directory Powershell modules
As an Administrator, start an elevated version of the Powershell command-line.
Verify if the required package is already installed.
Here is the command output.
Optionally, filter the output of the Powershell command to a simpler version.
Here is the command output.
Install the package containing the Powershell modules for Active Directory management.
Here is the command output.
Optionally, use the package full name to install the required software.
Congratulations! You have finished the installation of the Powershell modules for Active Directory management.
Tutorial Windows server – Installing the Active Directory Powershell modules
As an Administrator, start an elevated version of the Powershell command-line.
Install the Active Directory Powershell modules.
Congratulations! You have finished the installation of the Powershell modules for Active Directory management on the Windows server.