Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login scripts

Status
Not open for further replies.
Apr 8, 2004
6
0
0
US
The problem with the login is that each user has a home directory share such as johndoe$ this is specif for john doe although john doe cannot write to it by using this login script. I am trying to clean up the large amount of login scripts with one per department. Any suggestions?



@echo off

REM Welcome Screen
echo ************************************************************
echo * Please wait as the %username% is authenticated.
echo * You are accessing the network from %COMPUTERNAME% echo * And you are running the %OS% os.
echo * Hello %USERNAME%, Welcome to the Network!
echo ************************************************************

REM Set Network Time
net time \\servername /set /yes

REM Disconnect Existing Network Drive Connections net use * /delete /yes

REM This is where is takes the user and maps their drives IF "%USERNAME%" == " " GOTO END

GOTO Drives

:Drives

net use u: \\servername\%USERNAME% /yes
net use v: \\servername\prog /yes
net use x: \\servername\xfer /yes

goto END


:END



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top