Tag Archives: Powershell

Adding Hostnames to Security Groups

Adding multiple users to a Security Group can be tedious if done individually. Here is a PowerShell script that will improve efficiency when adding computer hostnames to the member section of a security group. Enjoy!! Import-module ActiveDirectory #Imports ActiveDirectory $ComputerFile = Import-CSV “C:\users\username\Documents\computerfile.csv” #This points to csv file ##################### #EXAMPLE: #Hostname #Computer1 #Computer2 ##################### $GroupName

Read More