Windows XP Drive Remapping

  • Thread starter Hubert Cumberdale
  • Start date
H

Hubert Cumberdale

Hi there,

I added a command in the logon script to map an R drive for all users. Now
the manager doesn't want it mapped for all users, so i added a line in the
script to delete it. Further down i added another line which would re-map it
for certain users. Unfortuantely it doesn't work. If you edit the new line
and change the drive letter to Q for example it maps that but when you come
to map it as R it won't.

Any thoughts on this peeps as im tearing my hair out.

Thanks in advance.
 
P

Pegasus [MVP]

Hubert Cumberdale said:
Hi there,

I added a command in the logon script to map an R drive for all users. Now
the manager doesn't want it mapped for all users, so i added a line in the
script to delete it. Further down i added another line which would re-map
it for certain users. Unfortuantely it doesn't work. If you edit the new
line and change the drive letter to Q for example it maps that but when
you come to map it as R it won't.

Any thoughts on this peeps as im tearing my hair out.

Thanks in advance.

Give yourself some eyes by modifying your batch file like so:
@echo off
echo %date% %time% %UserName% >> c:\test.txt
net use /persistent:no 1>>c:\test.txt 2>>&1
net use * /d /y 1>>c:\test.txt 2>>&1
net use R: \\YourServer\YourShare 1>>c:\test.txt 2>>&1
net use 1>>c:\test.txt 2>>&1

Now log on, then examine the file c:\test.txt. It will tell you everything
you need to know about your problem.
 

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