NT LogIn Scripts
Does anybody know where I can find samples of NT 4.0, user Login script files? There are no samples in NT Help or KnowledgeBase.
Thanks,
oded@travelcafe.org
Windows Forum
Does anybody know where I can find samples of NT 4.0, user Login script files? There are no samples in NT Help or KnowledgeBase.
Thanks,
oded@travelcafe.org
by calves
I'm sending you a copy of a script login that sets the server time and maps network drives to your email address.
Good luck!
C.
by oded1
by syscokid
Here's a great site devoted to creating login scripts with Kix32 (including samples):
http://netnet.net/~swilson/kix/
Here's a sample logon.bat that maps drives and copies a default desktop depending on group membership:
@Echo off
rem
rem * LOGON.BAT
rem *
rem *
rem * %1 is the servername, the user profile passes this parameter to the logon.bat
rem * %2 is the user's group membership passed as a parameter by User Mgr
rem * for Domains (e.g., logon.bat server1 common)
rem *
rem
:whoru
if %2==slc goto :slc
if %2==managers goto :managers
if %2==common goto :common
if %2==slcman goto :slcman
Echo "No Group memberships, Please see your Administrator or SLC."
Pause
goto END
:common
NET USE S: \\%1\shared /persistent:no
NET USE Z: \\%1\apps /persistent:no
NET USE lpt1 \\%computername%\LAN_Q
NET USE lpt2 \\%computername%\FRM_Q_01 /persistent:no
xcopy "\\%1\Profiles$\Common\Desktop\*.*" "%Userprofile%\Desktop"
goto end
:slc
NET USE Q: \\%1\adminapps /persistent:no
NET USE S: \\%1\shared /persistent:no
NET USE U: \\%1\users$ /persistent:no
NET USE V: \\%1\profiles$ /persistent:no
NET USE Z: \\%1\apps /persistent:no
NET USE lpt1 \\%computername%\LAN_Q
xcopy "\\%1\Profiles$\Slc\Desktop\*.*" "%Userprofile%\Desktop"
goto end
:managers
NET USE M: \\%1\mgrdata /persistent:no
NET USE Q: \\%1\adminapps /persistent:no
NET USE S: \\%1\shared /persistent:no
NET USE Z: \\%1\apps /persistent:no
NET USE lpt1 \\%computername%\LAN_Q
/persistent:no
xcopy "\\%1\Profiles$\Manager\Desktop\*.*" "%Userprofile%\Desktop"
goto end
:end
by oded1
This discussion is closed to new replies.
Sort by Trending