Here Is A Method That Is Helping PowerShell Add User To Group

Asked By 0 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 0 points N/A #177908

Here Is A Method That Is Helping PowerShell Add User To Group

qa-featured

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”

Related Questions