Though I wish I knew more about advanced logon script processing in the Windows environment (sometimes I miss Netware), here are a few notes that may help. Man, stock Windows logon scripting sucks!
To access the netlogon share, bring up a DOS prompt and:
net use L: \servername\netlogon
You gan then access/create the netlogon.bat file from Windows as drive L:.
Remember, your syntax is \servername\sharename.
================================
Logon Scripts
Create a netlogon.bat file that will map network resources for all users:
A simple netlogon.bat file:
net use p: \tucsvr\public
rem net use h: \tucsvr\%USERNAME%
net use H: /HOME
net time \tucsvr /set /yes
\tucsvr\public\pccsrv\autopcc
A different netlogon.bat file:
net time \linus /set /y
net use f: \linus\public /persistent:no
net use i: \linus\cdrom /persistent:no
net use j: \sonora_nt\c_drive /persistent:no
net use lpt1: \linus\cpw /persistent:no
net use lpt2: \linus\dot /persistent:no
net use lpt3: \linus\oki /persistent:no
The ‘/persistent:no’ is for NT/2000 clients.
Place this file in the /home/e-smith/files/netlogon folder.
Note about line endings:
If you use vi to create the logon.bat file, it is VERY important to use DOS-style line endings as UNIX editors do not automatically add the carriage-return character REQUIRED by the Windows logon script processor.
Example:
In vi, at the end of the line, hit ctrl-v then ctrl-m. This should insert the desired carriage return to the end of the line.
Alternately, sometime during the editing session, set the file format to DOS mode by typing ESC to get to command mode, then ‘:set fileformat=dos’ then ‘:w’ to write the new format to disk.