Re: for loop on this
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Oct 2008 11:54:04 -0500
You might get ideas from the Microsoft Script Center section on scripting
ADAM:
http://www.microsoft.com/technet/scriptcenter/scripts/ds/adam/default.mspx
There are scripts that enumerate all attributes of ADAM objects (and their
values). For example:
http://www.microsoft.com/technet/scriptcenter/scripts/ds/adam/list/amlsvb07.mspx
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
"joey" <joe@xxxxxxx> wrote in message
news:OnKeR58IJHA.5872@xxxxxxxxxxxxxxxxxxxxxxx
No the loop is to modify attibutes in ADAM. The attribute keystring
modifies different "KEYS" in ADAM
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:uyt0fM5IJHA.4896@xxxxxxxxxxxxxxxxxxxxxxx
"joey" <joe@xxxxxxx> wrote in message
news:OD0Qve4IJHA.3548@xxxxxxxxxxxxxxxxxxxxxxx
How do i change this script to use a loop
On Error Resume Next
Set objUser = GetObject _
("LDAP://localhost:51008/KEY=xxx,key=Services,key=Configuration,key=yyy,key=zzz,CN=aaa,DC=site0000001,DC=domain,DC=com")
objUser.Put "KeyValueString", "bbb"
objUser.SetInfo
Set objUser = GetObject _
("LDAP://localhost:51008/key=qqq,key=Services,key=Configuration,key=yyy,key=zzz,CN=aaa,DC=site0000001,DC=domain,DC=com")
objUser.Put "KeyValueString", "bbb"
objUser.SetInfo
You need to tell us what your loop condition is. Do you want to run it
twice? Until a certain condition is met? Until an error is encountered?
Other?
.
- References:
- for loop on this
- From: joey
- Re: for loop on this
- From: Pegasus \(MVP\)
- Re: for loop on this
- From: joey
- for loop on this
- Prev by Date: Re: modifying objects in ADAM ADSIEDIT
- Next by Date: Shortcut on desktop via logon?
- Previous by thread: Re: for loop on this
- Next by thread: Shortcut on desktop via logon?
- Index(es):
Relevant Pages
|