Yes, I would run the /DELETE no matter what.  

BTW - I like the name of your server!  HA~~ Grouchy!

-----Original Message-----
From: Adam Smith [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 23, 2002 7:22 PM
To: NT 2000 Discussions
Subject: Persistent Drive Mappings


I have a question I may have just answered by looking at this script
myself, but I'll post my thoughts anyway.

This is a portion of our login script:

REM PRONTO - Maps P-Drive for PRONTO Users
        IFMEMBER "UserPRONTO"
        if errorlevel 1 IF EXIST P:\NUL NET USE P: /DELETE
      if errorlevel 1 IF EXIST P:\NUL SUBST P: /D 
      if errorlevel 1 NET USE P: \\GROUCHY\PRONTO 
      IF EXIST P:\NUL ECHO P: Sucessfully Mapped.
      IF NOT EXIST P:\NUL ECHO P: Not Mapped.

It's quite straight forward in that it checks group membership, checks
the existence of P drive, and if it exists, then attempts to remove it
be either unsubsting or net use /delete-ing it.  It then creates the P:
mapping.

THINGS YOU NEED TO KNOW ABOUT THIS PROBLEM

1.  I don't use Roaming profiles.  I would if they didn't copy the
entire "My Documents" folder to the server.  It's too later stage in our
network planning to change all the default profiles "My Documents"
directory to the users home drive.  If it were an easy process then
maybe I would do it :-)

2.  Several months ago the "PRONTO" share moved from a server called
"SERVER" to a server called "GROUCHY".


OK

The problem is as follows:

A user logs on to a workstation where he's had a profile created
previously.  There is an existing mapping of P: to \\server\pronto.

I don't want to have to forcibly remove P: before I create it.

QUESTIONS:


1. Should I be using a "NET USE P: \\GROUCHY\PRONTO /PERSISTENT:NO"
command normally instead?
2. I assume my IF EXIST statement isn't working because P: is connected
to nothing, and therefore there is no "NUL" to check against, so the
connection fails.  How do I get rid of this problem in a clean way?  I
occasionally get the same problem with our "U:" which used to connect to
\\server\users before I set up individual home directory shares.  Some
people *still* have the legacy U:\ mapping.

Should I just run a "NET USE /DELETE ..." regardless of whether a drive
exists before I create it?

What do you guys do?



--
Adam Smith
IT Officer
SAGE Automation Pty Ltd.

Phone:  +61 8 82760703
Mobile: 0414 895 273

[EMAIL PROTECTED]
http://www.sageautomation.com
 



------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to