How can I reset an AD property to null, like the comment on a Computer
in AD?

Re: Reset AD property to null by Richard

Richard
Fri Jan 26 12:01:00 CST 2007

Epoh Rio wrote:

> How can I reset an AD property to null, like the comment on a Computer
> in AD?
>

To clear an attribute, use the PutEx method of the object and use the
ADS_PROPERTY_CLEAR constant. For example:

Const ADS_PROPERTY_CLEAR = 1

Set objComputer =
GetObject("LDAP://cn=MyComputer,ou=Sales,dc=MyDomain,dc=com" )
objComputer.PutEx ADS_PROPERTY_CLEAR, "description", 0
objComputer.SetInfo

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab web site - http://www.rlmueller.net
--



Re: Reset AD property to null by Epoh

Epoh
Mon Feb 05 11:41:51 CST 2007

Thanks, Richard.