What's the script written in?  If it's VBS, then use ADSI to retrieve the cn based on the sAMAccountName (which you already have, it sounds like).
 
Paul


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond
Sent: Thursday, May 06, 2004 4:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Variables allowed for creating home folders

I don't understand the quesiton. You want an environment variable that resolves to the value of the sn and givenName attributes strung together?
 
--Brian
-----Original Message-----
From: joe [mailto:[EMAIL PROTECTED]
Sent: Thu 5/6/2004 7:52 AM
To: [EMAIL PROTECTED]
Cc:
Subject: RE: [ActiveDir] Variables allowed for creating home folders

Unfortunately Stephen I have never seen anywhere that this may be something that is configurable. I highly doubt that it is.
 
  joe
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bell, Stephen
Sent: Wednesday, May 05, 2004 12:09 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Variables allowed for creating home folders

My question is this.  Is there a variable that I can use when creating user home directories that will resolve to the “User Logon Name” just as &username& resolves to the samaccount name or “Pre Windows 2000 User Logon Name” field?

 

Background:

 

Normally what I use when creating home directories (actually allowing AD to make them I should say) is (location)\&username& and this creates the home directory using the name shown in the “Pre Windows 2000 User Logon Name” field (actually the samaccount name I believe).

 

Do to a change in naming conventions I would like to adjust that.  The new naming convention is the “Pre Windows 2000 User Logon Name” field will be a number such as 12345 while the “User Logon Name” will be the users name.  I would prefer to have the home directories name be a little more readable rather than have people having to remember their number.

 

This is only an issue when going though the GUI.  I’ve all ready got the script that I use to make users in batch mode converted over.  I just took the UPN name and stripped off everything after the @ character and used that to name the home directories.

 

Thanks for any help!

 

Steve

 


===========================================================

Important:
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law.  If you
are not the intended recipient, you are hereby notified that any viewing,
copying, disclosure or distribution of this information may be subject to
legal restriction or sanction.  Please notify the sender, by electronic
mail or telephone, of any unintended recipients and delete the original
message without making any copies.

===========================================================

Reply via email to