You might be able to goof with a display specifier in the config container, but, I have no idea if that field has one. I guess you could run a trace when you open the new user box and see what all it pulls in. --Brian
-----Original Message-----
From: Bell, Stephen [mailto:[EMAIL PROTECTED]
Sent: Thu 5/6/2004 6:21 PM
To: [EMAIL PROTECTED]
Cc:
Subject: RE: [ActiveDir] Variables allowed for creating home folders
Scripting it is not a problem. Iâm just trying to figure out a way for the
one off user account creation done though the GUI to match it without having to go
into the home directory field in the ADUC user profiles properties page and type it
in; I would rather have a variable to use there instead.
I do not know of an environmental variable that will do this and it appears
from comments (both on and off the list) that there is none. That surprises me in a
way, what happens in 5 years and longhorn comes out. Does the pre-windows 2000 field
even exist anymore? NT 4.0 has been âreplacedâ for 6 or 7 years by then. If the
UPN is going to be the way accounts are referenced, shouldnât there be a way to get
to the unique user name portion of it though a variable?
Oh well, that is a thought for another day.
Cheers
Steve
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cotter, Paul M.
Sent: Thursday, May 06, 2004 3:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Variables allowed for creating home folders
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.
===========================================================
<<winmail.dat>>
