There is a non-browsable share called "netlogon" on the server. This includes a simple sample netlogon.bat file.
I've created a more complex version which I've pasted below and which will do what you seem to be asking. To use it fully, you'll need to grab "winset.exe" from a Win 95 CD and do a Google search for "putinenv.exe".
Good luck,
Des Dougan
@echo off
REM
REM Enhanced version by Des Dougan (ddougan@telus.net), March 2001.
REM
REM Updated to add code to enable use on NT/W2K, November 2001.
REM
REM Updated to fix some errors in the code to enable use on NT/W2K.
REM These caused some problems on Win 9x systems. February 2002.
REM
REM **Windows 9x/ME systems**
REM This enhanced "netlogon.bat" script uses "winset" (an MS
REM utility which is on the Win95 CD (not sure about 98 or ME). It
REM loads environment variables extracted by "putinenv".
REM "putinenv" is a freeware utility used to read samba system variables.
REM Note: it does not pull all the variables noted in its online help
REM presumably because samba does not support all the MS LAN Manager
REM variables this was written to extract.
REM
REM **NT/Win 2000**
REM NT and W2K don't need, and can't use, "winset". Code included to
REM bypass the Win9x required stuff.
REM
REM Main code starts here
REM
REM Set the temporarily-mapped directory containing the scripts.
Z:\
REM Define the name of the server this batch file runs from. Server
REM name is in "\servername" format.
REM
set SERVER=\agatha
REM
REM Set the workstation time when clients logon to the domain.
REM
net time %SERVER% /set /yes
REM
REM Map the user's home directory to drive H:
net use h: /home /yes
REM
REM Map the testing shared directory tree to drive T:
REM
net use t: %SERVER%\testing /yes
REM
REM Bypass Win9x-specific section if NT/W2K (NT & W2K have a "boot.ini"
REM file, which Win9x doesn't have).
REM
if exist c:\boot.ini goto :NOT9X
REM
REM For Win 9x clients, define the name of the server this batch file
REM runs from as a global ("winset") environment variable. Server
REM name is in "\servername" format.
REM
winset SERVER=\agatha
REM
REM Run the putinenv utility to extract variables
REM Run "putinenv | more" for help
REM
putinenv.exe L /L
REM
REM Set the USERNAME environment variable
REM
winset USERNAME=%USERNAME%
REM
REM Set COMPUTERNAME if required
REM winset COMPUTERNAME=%COMPUTERNAME%
REM
:NOT9X
REM
REM Set shares based on who's logging in
REM if "%USERNAME%"=="des" net use q: %SERVER%\quicken /yes
REM
REM Set the directory back to C:\
REM
C:\
REM
REM Delete Z:\mapping (left behind by NT and Win 2K)
REM
net use z: /delete /yes