Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit Computer Object Description in AD Part 2 1

Status
Not open for further replies.

Keyster86

IS-IT--Management
Jul 23, 2008
50
US
OK, this post is in connection with another post:

Let's say I have three specific computer names. And on those three specific computers, I want to change the description field in Active Directory.

What would be the vbscript code for this task versus going into AD and changing the description manually?

V/r,

SPC Key
United States Army
 
Set objComputer = GetObject("LDAP://<ComputerDN>)
objComputer.Put "Description", "Description goes here"
objComputer.SetInfo 'like hitting "Apply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top