Windows Thread, Problem with %HOMEPATH% and %HOMESHARE% variables in Technical; For every logon ive recorded the following environment variables:
%USERNAME% %HOMEDRIVE% %HOMEPATH% %HOMESHARE% %LOGONSERVER%
The problem is:
Those who have ...
For every logon ive recorded the following environment variables:
%USERNAME% %HOMEDRIVE% %HOMEPATH% %HOMESHARE% %LOGONSERVER%
The problem is:
Those who have %HOMEPATH% = "\" and %HOMESHARE% = "\\server\share\path\here\to\username" have their homefolder mapped to H: properly.
Those who have %HOMEPATH% = "\yearintake\username" and %HOMESHARE% = "\\server\share" have their H: mapped to \\server\share.
MyDocuments was set to H:, but a workaround currently in place is to redirect mydocs to the full home folder - which works.
However, some applications cannot use UNC paths for storing documents so it needs to use the H: drive.
This problem (not getting full path mapped to h:) happens very randomly and only applies to students.
Staff are all on \\hhfs03\users\staff\username and students are distributed throughout hhfs01, hhfs02 & hhfs03.
Staff use roaming profiles and students use a mandatory profile.
All servers are Server 2003 SP1 and all workstations are XP Pro SP1.
Ive applied a GP change to both students and staff:
User Configuration->Administrative Templates->System->User Profiles-> Connect home directory to the root of the share-> DISABLED
Ive attached 2 files to demonstrate the problem, 1 screenshot of excel for a quick butchers and the 2nd is a csv(.txt) file for you to manipulate if necessary.
Re: Problem with %HOMEPATH% and %HOMESHARE% variables
Hi frazer
My usermaker script is similar but i only use a princible of
scriptname year form Firstname Second etc...
The script does the rest.
Any duplicate firstnames are noted and manually processed afterwards using the script i.e.
Firstname with the first char of the secondname.
The script of course detects if the user exists or otherwise, it would start changing the existing user, dir and hidden share, etc...
I've got more tweaking to do but it works real well.
The only snag here is sometimes they input into sims the first names the wrong way around but its no real problem really. The users dont mind (and why should they - its only a logon name hehe)
Re: Problem with %HOMEPATH% and %HOMESHARE% variables
@ajbritton:
It gets a little messy with 2000+ user accounts crammed into one folder. A little organisation goes a long way :P Besides win2k/2k3 is supposed to support sub folders in shares and for most logins, it does. MyDocuments redirection works fine from GP, its the homedrive that is not being mapped properly on some logins.
Even with just \\server\users\%username% we found H: sometimes mapped to \\server\users.
@tarquel:
It was the output of some variables (open a dos box and type 'set') after each user logs in, nothing to do with user creation
Re: Problem with %HOMEPATH% and %HOMESHARE% variables
Ive fixed it!
\o/ GP Computer _OR_ User policy (ive done it on the pupils user policy since staff was already working fine):
Administrative Templates -> System -> Scripts -> Run Logon Scripts Syncronously -> ENABLED
This must be set for the staff somewhere since its not affecting them, be damned it I can find it though :/