Jump to content


  • 0
Vancouverite

Scripting Collection Membership

Question

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

1 answer to this question

Recommended Posts

  • 0

mmm...i've often wondered this but never managed to get around to trying it. We generally just use the method you described. We have a BIT different take on it also as we used a GPO on the OU to add it to standard LOB applications for the Site.

 

let us know if which way you'll head as i'd be curious to see how you go about it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

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.