FOR loop (DOS)

Loop through names in file

FOR /F %i in (c:\Temp\_Computers.txt) do @echo %i

Populate AD group with computer accounts

FOR /F %i in (c:\Temp\_Computers.txt) do dsmod group "CN=GPO-Server-Low Criticality,OU=Group Policy Filtering,OU=Privileged Objects,OU=All Resources,DC=lab,DC=com" -addmbr %i

Comments