Re: adding a custom url to many users



On Thu, 9 Feb 2006 03:52:28 -0800, "Odd-Arne" <OddArne@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Used this:
Const ADS_PROPERTY_APPEND = 3

Set objUser = GetObject _
("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com";)

objUser.PutEx ADS_PROPERTY_APPEND, _
"url", Array("http://www.fabrikam.com/policy";)
objUser.SetInfo


This script adds to a single user, what im looking for is a script that adds
this value to all users within a spesific OU

Modify the script at 10015 » How can I use VBScript to return all the users in an OU (Organizational Unit)?
in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.



Relevant Pages

  • Re: Upgrading in the same RELENG without shutdown ?
    ... i guess it's obvious that the 2nd script is designed to be run in single user ... cd /usr/src, mergemaster -p, make installworld, mergemaster. ...
    (freebsd-questions)
  • Password Last Changed script for all users...
    ... Consider the following script: ... Set objUser = GetObject _ ... dtmValue = objUser.PasswordLastChanged ...
    (microsoft.public.windows.server.scripting)
  • ADSI Scripting Help Set Sequential Users
    ... I can't figure out how to get my script to loop properly. ... Set objUser = GetObject _ ... I need to change some attributes for accounts that are numbered sequentially. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Upgrading in the same RELENG without shutdown ?
    ... From what I have read so far I guess I'll stick to the 'classic' procedure and boot in single user to do the merging things. ... & using the "-i" option to mergemaster the 2nd time. ... i guess it's obvious that the 2nd script is designed to be run in single user ... cd /usr/src, mergemaster -p, make installworld, mergemaster. ...
    (freebsd-questions)
  • Setting the users profile path to blank in AD
    ... I need a script that will cause the profile path to be blank. ... Set objUser = GetObject ...
    (microsoft.public.scripting.vbscript)