[Samba] XP Home logon scripts

DA Forsyth iwrtech at iwr.ru.ac.za
Thu Dec 9 12:27:35 GMT 2004


Yesterday I had to face the XP Home logon script monster and came up 
with something that appears to work ok.

Issue is the XP Home will not do a domain login and therefore not run 
the logon script, nor map the home drive using 'net use h: /home'

My solution is to put a batch file into 
c:\documents and settings\username
that contains
    net use h: \\server\username /user:username
    call \\server\netlogon\userlogonscript.bat

Then place a shortcut to that in the users 'startup' menu item.

Now, when the user logs in and the network is found (I was working on 
a laptop so the network is not always there) the home drive is 
mapped, creating an authenticated connection, thus allowing the call 
to the logon script to execute.

One can put the password into the batch, in plaintext, if that is 
considered ok in your situation.   However I believe that if the 
network password is the same as the laptop login password it will 
'just login'.  My user has different passwords and is prompted for 
the network password.  This is complicated a little by having a 
laptop username that differs from the network username.

Has anyone a better way of forcing a XP Home logon?

Hope this helps someone, and thanks to Allan whose message about 
something like this got me going from a web search, but his email 

       DA Fo rsyth            Network Supervisor
Principal Technical Officer  -- Institute for Water Research

More information about the samba mailing list