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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to logon scripts

Status
Not open for further replies.

Ravenrx7

IS-IT--Management
Joined
Aug 21, 2002
Messages
109
Location
US
Do you guys know where I can get some free logon scritps that I can run test on? I search Mircosoft but can up empty. I'm looking for some drive mapping scripts and deployment scripts.

Thanx

Raven~ Josh McMahon
A+ Certified
jmcmahon@lexgen.com
 
Hey Josh,
Try the scipt below

if exist h:\nul net use h: /del
net use h: \\PDC\sharefolder

This script is the best for drive mapping so far. At least I think so. :)
 
Hey Josh, here is one we use, where bhh01 is the PDC name
So when mapping a drive use \\servername\sharename

Here is our script for a few things

@echo off
REM Sync time with PDC
ECHO Syncronising time with the Server...
net time \\bhh01 /set /yes
echo Welcome %username%
echo You logged into Domain: %userdomain%

if "%OS%" == "Windows_NT" goto DeleteOST
if "%OS%" == "Windows_95" goto SkipOST

REM Delete old offline store files (OST) to stop
REM problems with outlook 98 startup
:DeleteOST
C:
DEL C:\WINNT\*.OST /S

REM Skip the deletion of the OST files
:SkipOST


REM Skip drive mapping if user logging on is generic
%LOGONSERVER%\netlogon\ifmember "Generic ID's"
if ERRORLEVEL 1 goto End

REM net use F: /delete
REM net use F: \\BHH01\sharename
net use G: /delete
net use G: \\BHH01\sharename
net use H: /delete
net use H: \\BHH01\sharename
net use K: /delete
net use K: \\BHH01\sharename
net use N: /delete
net use N: \\BHH01\sharename
net use P: /delete
net use P: \\BHH01\sharename
net use q: /delete
net use r: /delete

REM Call batch file to map application specific drive mappings
call MappingsForApps.bat

:End




Good Luck
 
thanks guys =) Josh McMahon
A+ Certified
jmcmahon@lexgen.com
 
Is there a certain web site that has all of these? Josh McMahon
A+ Certified
jmcmahon@lexgen.com
 
Also how to you insert them into under the OU policy. Do you first write this as a text file then insert? Josh McMahon
A+ Certified
jmcmahon@lexgen.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top