Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Home Networking

Scripts

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2004, 05:10 PM
Default Scripts



Could someone please make me or tell me how to make a logon script to map a
network drive?

TIA

Carl




Carl04
Reply With Quote
  #2  
Old 09-25-2004, 08:36 PM
Dr Zoidberg
Guest
 
Posts: n/a
Default Re: Scripts

Carl04 wrote:
> Could someone please make me or tell me how to make a logon script
> to map a network drive?
>

The command is
NET USE e: \\servername\sharename
save that as a text file with a .bat extension , then either stick that file
in the startup folder of the program list , or learn how to use the local
computer policy to run it as a startup script

--
Alex

"We are now up against live, hostile targets"

"So, if Little Red Riding Hood should show up with a bazooka and a bad
attitude, I expect you to chin the bitch! "

www.drzoidberg.co.uk
www.ebayfaq.co.uk


Reply With Quote
  #3  
Old 09-28-2004, 06:35 PM
Phil
Guest
 
Posts: n/a
Default Re: Scripts

Something i prepared earlier:

@echo off

rem - Login script for Medical Records
rem - Created by Phil Jennings 28/09/04

rem - Connect to relevant workgroup directory and then
rem - run common login elements for all users

rem OS specific drive mapping (NT uses Persistent switch)
if "%OS%" == "Windows_NT" goto NT_OS

rem Connect to Users Workgroup Directory
net use I: \\com1\medicalrecords$
net use J: \\com1\supplies$
net use K: \\com1\general$
net use R: \\com1\%username%$

Goto END

:NT_OS
rem Connect to Users Workgroup Directory
net use I: \\com1\medicalrecords$ /PERSISTENT:NO
net use J: \\com1\supplies$ /PERSISTENT:NO
net use K: \\com1\general$ /PERSISTENT:NO
net use R: \\com1\%username%$ /PERSISTENT:NO

:END

rem Run generic script for all users
call \\rlhdc02\netlogon\Allusers.bat


rem If Operating System is NT then mail and schedule will start
rem if the user wishes from the startup group in the users profile.
if "%OS%" == "Windows_NT" goto EXit

rem Start Mail
rem c:\"Program Files"\"Microsoft Exchange"\Exchng32.exe

rem Start Schedule
rem c:\msoffice\schedule\schdpl32.exe

:Exit


"Dr Zoidberg" <AlexNOOOOO!!!!@drzoidberg.co.uk> wrote in message
news:(E-Mail Removed)...
> Carl04 wrote:
>> Could someone please make me or tell me how to make a logon script
>> to map a network drive?
>>

> The command is
> NET USE e: \\servername\sharename
> save that as a text file with a .bat extension , then either stick that
> file in the startup folder of the program list , or learn how to use the
> local computer policy to run it as a startup script
>
> --
> Alex
>
> "We are now up against live, hostile targets"
>
> "So, if Little Red Riding Hood should show up with a bazooka and a bad
> attitude, I expect you to chin the bitch! "
>
> www.drzoidberg.co.uk
> www.ebayfaq.co.uk
>



Reply With Quote
Reply

Tags
scripts

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.