Re: Missing home dir when account created by vbscript
- From: "Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 10 May 2006 13:48:15 -0500
Kevin wrote:
When I create an account using vbscript I also create the home dir for the
user and populate the homeDir properties of the account. There are no
errors
creating the directory and there are no errors populating the homeDir
property of the account. Using Active Directory Users and Computer (ADUC)
I
can see that the account was created and that the home dir was set
properly.
Checking the drive for the dir reveals it is created and the rights are
assigned correctly.
The problem is at login. When you login with one of these accounts the
user
does not get a mapping to their home dir. Yet if they use the run cmd they
can open the dir and utilize it.
We suspect it has something to do with what gets input to the homeDir
property but I'm unable to determine that there is anything wrong with it.
Interestingly if I modify the home dir property in ADUC (so the apply
button
becomes active) and then switch it back to what was there then click
apply,
when the user logs in their home dir appears correctly for them.
Any ideas?
Are you using the LDAP provider and assigning values to the homeDrive and
homeDirectory attributes? Also, the homeDrive attribute should be a single
letter followed by a colon, such as "H:".
If you are using the WinNT provider, the attributes are homeDirDrive and
homeDirectory.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
.
- Follow-Ups:
- Prev by Date: Re: Filtering via OU
- Next by Date: vb script to change pagefile to system managed
- Previous by thread: Filtering via OU
- Next by thread: Re: Missing home dir when account created by vbscript
- Index(es):