8 replies
by joseph moore
I'm bored today, so here you go:
@ECHO OFF
rem ***************************************************
rem login script aps.bat
rem Changes applied June 7, 2001
rem ***************************************************
rem ***************************************************
rem Delete all drive mappings that this script will map
rem ***************************************************
net use f: /delete
net use s: /delete
net use y: /delete
net use k: /delete
net use l: /deletenet use p: /delete
rem ***************************************************
rem Map network drives
rem All drives map with the persistent:no switch
rem ***************************************************
net use F: \\PDC\ROOT /persistent:no
net use S: \\PDC\SHARE /persistent:no
net use Y: \\PDC\PUBLIC /persistent:no
net use K: \\SERVER2\APPSPRT /persistent:no
net use L: \\SERVER2\CUSTINT /persistent:no
net use P: \\SERVER2\HELPDESK /persistent:no
rem ***************************************************
rem Printer LPT1 Port Mapping
rem ***************************************************
net use LPT1 \\SERVER2\PRINTER
rem **************************************************
rem Set Up Pathing
rem **************************************************
path=%path%;f:\;
by joseph moore
rem **************************************************
rem Optional Section
rem Items here will be run for a while then removed
rem **************************************************
NET CONFIG SERVER /SRVCOMMENT:"%USERNAME%"
REM for Network Neighborhood comments field to have logged in user name! Cool!
now.exe %username% -- %computername% >>\\10.1.1.1\netlogon\Loginlist.txt
REM using the above for some user/computer lists.
if exist "%windir%\system\explorer.scr" net send SERVER2Computer %computername% has Benjamin virus!
REM Above is for Kaaza Benjamin virus detection.
cls
if %computername% ==SERVER3 goto resume
if %computername% ==SERVER4 goto resume
if %computername% ==SERVER5 goto resume
if %computername% ==SERVER6 goto resume
if exist "%windir%\my intranet.scr" goto nocopy
echo My Screensaver will be installed and configured. Please stand by.
copy "\\PDC\netlogon\my intranet.exe" %windir%
copy "\\PDC\netlogon\My intranet.scr" %windir%
call regedit /s screensaver.reg
call regedit /s fullon.reg
call securitynotice.htm
call regedit /s fulloff.reg
goto resume
:nocopy
echo My Screensaver currently installed. Configuring its use now. Please stand by.
call regedit /s screensaver.reg
call regedit /s fullon.reg
call securitynotice.htm
call regedit /s fulloff.reg
goto resume
:resume
REM The grandose forcing MY SCREENSAVER onto everyone's system.
if %username% == JOE goto ParisDriveMap
if %username% == joe goto ParisDriveMap
goto end
:ParisDriveMap
cls
echo Mapping drive P to the Paris machine. Please stand by.
net use P: \\10.100.1.1\share /persistent:no /user:remoteoffice\useraccount
goto end
rem **************************************************
rem End Optional Section
rem **************************************************
rem **Changes applied by Joseph Moore
:end
EXIT
by zow
by alpha-male
I would *highly* recommend using Kix32 for your logon scripts. Its free, powerful and fairly simple to use.
Look here for some basic info:
http://www.winntmag.com/Articles/Index.cfm?ArticleID=3388
You can download it here (and help files etc):
http://www.kixtart.org/downloads.html
And look here for TONS of samples and examples:
http://home.wanadoo.nl/scripting/index.htm
Delete any spaces in the above URLs.
Good luck...hope this helps!
by zow
by monsoonlive
Make a batch file in Winnt4.0 name of the file as Batch put all this command and save.
net use G:/user
net use H:/data
net use I:/doc
save it in ur windows and there is a option in ur NT 4.0 and put all ur user machine this batch file in windowsstartup and it will work.
by zow
by zow
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending