Posts

Showing posts with the label AD Group

Powershell - Add Users / Computers to AD Group

The below script can be used to add multiple user or computer to an AD group. The list of users / computers to be provided in the text file. Usage: See below example. To see full help Type script name and press enter. You have to provide computer name or user name (SAM Account) in text file. Add computer to AD Group     .\AddObjectsToADGroup.ps1 -FileName Computers.txt -ADGroupName "TestGroup" -ObjectType Computer .Add user to AD group     .\AddObjectsToADGroup.ps1 -FileName Computers.txt -ADGroupName "TestGroup" -ObjectType User Github Repostiorty Raw File #Script #Version: 1.0 #Author: Equebal Ahmad <# .SYNOPSIS     Add the computers / users account to an AD Group .DESCRIPTION     Add the computers / users account to an AD Group     The script can add user and computer in an AD group. You need to pass this with ObjectType parameter. .EXAMPLE     .\AddObjectsToADGrou...