Net Use command?

  • Thread starter Kasem Pralamphakorn
  • Start date
K

Kasem Pralamphakorn

The first time I write net use command in logon script batch file. After
user logon first time, it has error about network drive already in use. How
can I write net use command?
 
P

Pegasus \(MVP\)

Kasem Pralamphakorn said:
The first time I write net use command in logon script batch file. After
user logon first time, it has error about network drive already in use. How
can I write net use command?

Type these commands for your user (just once!)

net use * /del
net use /persistent:no
 
D

Dave Patrick

net use X: /d
net use X: \\servername\sharename

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| The first time I write net use command in logon script batch file. After
| user logon first time, it has error about network drive already in use.
How
| can I write net use command?
|
| --
| Kasem
|
|
 
L

Lanwench [MVP - Exchange]

Kasem said:
The first time I write net use command in logon script batch file.
After user logon first time, it has error about network drive already
in use. How can I write net use command?

In your login script (presuming you have no Win9x/ME computers):

net use * /del
net use x: \\server\share /persistent:no
net use y: \\server\share /persistent:no

etc.
 
G

Guest

net use m: \\computername\sharename\%USERNAME%

How do I create a user directory within the share? I want when the user
logins that it creates their username folder, not their home directory but a
different location with their username.

I thought the above syntax would work but I've tested it in adminlogin
script and it doesn't work when I log in. Is there something that I am
missing?
I'm not sure how to duplicate the mapping process that is done when home
directories are creating when the user first logs in.

Any suggestions?
 
R

Ray Costanzo [MVP]

How about preceding it with a mkdir command.

if not exist \\computername\sharename\%username%\ mkdir
\\computername\sharename\%username%
net use m: \\computername\sharename\%username%

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top