Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > Need to Copy More Attributes from User Template

Need to Copy More Attributes from User Template

Forum Windows 2000/NT : Windows 2000/NT General Discussion - Need to Copy More Attributes from User Template

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

Hi,

When we create new users by copying from templates, we found some attributes
which were copied in User Manage for Domain (NT), such as Description, and
some new attributes, such as Street, will not be copied to the new accounts.

I found the following info from Microsoft Windows 2000 Scripting Guide:
http://www.microsoft.com/technet/s [...] px?pf=true

"Another way of completing the copy user account task is by using the schema
attribute of IADs to determine which attributes of the user class are
optional, then check the template user account to determine which of these
attributes contain values. For those that do contain values, write those
values to the new user account object. This approach does not require you to
define the specific attributes you want assigned to the new user account."

I believe this will solve my problem. Does any know any detail info about
this approach and can provide me the link to it?

Thanks in advance,

Eric

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

To get most attributes to copy when doing a template, you need the edit
the "searchFlags" property using ADSIEDIT of that attribute and add
0x16
to whatever is already there (so you are turning the 5th bit on). For
streetAddress you will have to add that attribute to the User class.

I don't know of a place where all this is documented....

chris

Reply to Anonymous

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

I forgot to mention that after you set searchFlags, you go into the
schema snap-in and (for that attribute) check "This attribute is copied
when duplicating a user".

chris

Reply to Anonymous

Archived from groups: microsoft.public.win2000.active_directory (More info?)

 

Thank you very much, Chris!

Eric


"Chris Malone" <persillade@hotmail.com> wrote in message
news:1120237136.048925.325020@g49g2000cwa.googlegroups.com...
> To get most attributes to copy when doing a template, you need the edit
> the "searchFlags" property using ADSIEDIT of that attribute and add
> 0x16
> to whatever is already there (so you are turning the 5th bit on). For
> streetAddress you will have to add that attribute to the User class.
>
> I don't know of a place where all this is documented....
>
> chris
>

Reply to Anonymous
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > Need to Copy More Attributes from User Template
Go to:

There are 1054 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them