Month: June 2016
![Harri Jaakkonen](https://i0.wp.com/www.cloudpartner.fi/wp-content/uploads/2021/09/harri_pic.jpg?fit=32%2C32&ssl=1)
Posted by Harri Jaakkonen Posted on 28/06/2016 0 Comments on How to find computers with a name starting with something and add them to a security group.
Posted in Active Directory, Powershell
Dou, that was a long sentence 🙂 But here is how. $computers = get-adcomputer -ldapfilter “(name=name*)” $computers | foreach {Add-ADGroupMember -id name_of_the_group -MEMBERS $computers.samaccountname} Happy powershelling!