Skip to content

Write To AD Objects

July 1, 2008

The WriteData procedure originally was used to update the Description property of computer objects in the Active Directory. The procedure can now update any single-valued property of a given object in the Active Directory.

The procedure accepts the following parameters:

  • strProperty
  • strValue
  • strADSPath

strProperty

This is a string variable that would contain any one of the many single-value properties available in Active Directory. I typically pass in "Description" as that’s the property I’m interested in.

strValue

This is a string variable that holds the data to be written to the Active Directory. The information can be statically passed in or created based on calls to other functions within the script.

strADSPath

This is a string variable that holds the DistinguishedName property of the object we are working with. This is typically passed in from another function that queries the Active Directory for object data.

Advertisements

From → Scripting

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: