Hello all!

I am working on a script that will add a computer to a group based on ip address. I got the ip address part working, and can tell what group the computer should be in, but I don't know how to add a computer to a group in AD.

There are many examples on the site here on how to add users to a group, GroupAdd() for example, but that doesn't seem to work for computer objects.

Any ideas?