I'm looking at https://gallery.technet.microsoft.com/scriptcenter/Add-the-current-computer-3759f02d but that seems to only work for adding a computer to s single security group.
I need to add a computer, during deployment, to several security groups.
In SCCM 2007 I have a VBS script, but can't seem to get it working properly in MDT 2013.
And since the script in the link above is for MDT deployment, it looks like a nicer way of doing it.
The variable ADGroup in CustomSettings.ini looks like it can support only one group, so something like ADGroup1, ADGroup2, etc would work great for me.
Just need to script to look at the increasing numbers till there are no more of ADGroup#.
I could copy the script and replace ADGroup with ADGroup1, and a second copy with ADGroup2, but that's not very nice, is it?
Hope someone alter the script to make it work. I would really appreciate it.