Does anyone know if it is possible to add (or remove) a computer from a collection by means of a script (one that could be incorporated into a task sequence)?
I was considering creating a package that ran a .vbs script to add the machine's account into an AD group and doing it that way (with the collection membership being based upon a query of AD). But it occurs to me that (in theory) a script could just as easily be used to directly modify the collection membership instead.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Does anyone know if it is possible to add (or remove) a computer from a collection by means of a script (one that could be incorporated into a task sequence)?
I was considering creating a package that ran a .vbs script to add the machine's account into an AD group and doing it that way (with the collection membership being based upon a query of AD). But it occurs to me that (in theory) a script could just as easily be used to directly modify the collection membership instead.
Share this post
Link to post
Share on other sites