Re: for loop on this



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?





.



Relevant Pages

  • Re: understanding ADAM
    ... you can do anything with your data with MIIS. ... Use of included script samples are subject to the terms specified at ... > ADAM dm_user-object: ... >>>SDE, Active Directory Core ...
    (microsoft.public.windows.server.active_directory)
  • Re: Enumerate User Attributes
    ... I don't have the equipment and/or knowledge to duplicate ... I feel I have come such a long way with ADAM ... You can use rootDSE to bind to a few things, ... user to supply that information when the script runs (for example, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Modifying dsheuristics
    ... I'm not aware of anything in ADAM unattended install. ... google for "dsheuristicsvbscript" or to ... as ldif file and then test import against a new instance). ... maybe using a script or when performing an unattended ...
    (microsoft.public.windows.server.active_directory)
  • Re: Changing Default Names
    ... Either the parameter @objname is ambiguous or the claimed ... @objtype is wrong. ... >Can you try running the script that Adam provided, ...
    (microsoft.public.sqlserver.server)
  • Re: Listing installed ports without any ports dependent on it
    ... wrote Adam thusly... ... >> It's not Python, but this script should work. ... ISO employment. ...
    (freebsd-questions)