Asked By
hgwcelsa
0 points
N/A
Posted on - 06/29/2016
What are the steps for PowerShell add user to group? I want to add a user to a group. How can I add a user to the group using PowerShell?
Answered By
xander
0 points
N/A
#177908
Here Is A Method That Is Helping PowerShell Add User To Group
The primary step is to introduce the Active Directory commands component in the Power Shell prompt with the following command:
C:> Import-Module Active Directory
Then, with the help of the below-mentioned command, you can add the user to the group:
C:> Add-AD Group Member –Identity “Name Of Group” –Member USERNAME
You can also check whether the member is successfully added or not with the command:
C:> Get-AD Group Member “Name Of Group”