Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Set AD Computer Member Of attribute using the computer object
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick  
View profile  
 More options Oct 28 2009, 7:44 am
Newsgroups: microsoft.public.scripting.vbscript
From: Nick <nick.huny...@gmail.com>
Date: Wed, 28 Oct 2009 00:44:27 -0700 (PDT)
Local: Wed, Oct 28 2009 7:44 am
Subject: Set AD Computer Member Of attribute using the computer object
Hello fellow Scripters,

To start, VBScript or Powershell will do. I am looking at the Qwest
cmdlets for AD but I have similar results as with Vbscript.

I need to change the "Member of" tab group memberships on a couple
thousand servers, not necassarily all at once, but you see the need
for an automated solution. Every solution I have found is to work with
the group and add/delete the server from there. I do not prefer this
method as there could be thousands of other servers in that group and
to edit its membership, well worries me, to say the least. I know with
a solid solution it would work just fine in this manner, but making a
mistake of that caliber is a job delimiting decision.

Every attempt to script this task results in the following error in
both VBScript and PS:

The server is unwilling to process the request.

Using Qwests AD cmdlets, here is the syntax I have worked up:

Get-QADComputer server1| Set-QADObject -objectAttributes {@
{MemberOf="CN=blah blah,OU=blah,OU=blah,OU=blah,OU=blah,OU=blah,DC=
blah,DC= blah,DC= blah,DC= blah "}}

In VBScript:

objComputer.PutEx ADS_PROPERTY_APPEND, "memberof", Array("CN=blah
blah,OU=blah,OU=blah,OU=blah,OU=blah,OU=blah,DC= blah,DC= blah,DC=
blah,DC= blah ")

Any thoughts?


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google