Hi,
I am using the code below to get each computer that doesnt belong to the SCCM_Internet Explorer 9 group. Can I just add the following to the code below so that they each get assigned?
Add-ADGroupMember"SCCM_Internet Explorer 9"
Get-ADComputer -Filter * -SearchBase 'OU=Testing,DC=domain,DC=com' -Properties memberOf | ForEach { If ($_.memberOf -notcontains 'CN=SCCM_Internet Explorer 9,OU=Groups,DC=domain,DC=com') { $_ | Select Name,memberOf
#---->Add-ADGroupMember"SCCM_Internet Explorer 9" } }