?
Solved

Net USE command

Posted on 2013-01-28
6
Medium Priority
?
680 Views
Last Modified: 2013-01-28
I have a folder within a department folder that I need to give use access to. If I use the mapping function under my computer I can map to the specific folder. I am trying to put a net use command in a log on script but when I run the command I get

 system error 5 has occurred access denied.

the command is

net use L: \\server name\shared company folder\department folder\folder 2

net use will work here net use L:  \\server name\shared company folder

The user group has list access to traverse through the department folder and read wright modify access to folder 2.

I don't understand why this will not map using the net use command.
0
Comment
Question by:jatkins-ccn
6 Comments
 
LVL 5

Accepted Solution

by:
Metaltree earned 1200 total points
ID: 38828692
Is there a space? Have you tried using quotes ?

http://support.microsoft.com/kb/92781
0
 
LVL 24

Expert Comment

by:smckeown777
ID: 38828693
That's by design...

Net use needs this syntax - '\\server\share'

You can't use subfolders, needs to be a clean share

So fix is to share the subfolder with a new share name and then remap the proper syntax

Do you understand?
0
 
LVL 5

Expert Comment

by:Metaltree
ID: 38828713
It does not have to be directly to the actual share name, you can in fact specify a sub folder in the share as long as you have the correct rights
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 24

Expert Comment

by:smckeown777
ID: 38828718
Ah sorry, must be another command I got confused with...cool my mistake
0
 
LVL 9

Expert Comment

by:EMJSR
ID: 38829043
Simply share the subfolder within the first share if need be. That's not a problem. But yes, if there are spaces in a folder name, then there need to be quotation marks around it.

So: net use L: "\\server name\shared company folder\department folder\folder 2"

I would potentially also add a net use L: /delete in front of that line, just be sure nothing else gets mapped to it.
0
 

Author Closing Comment

by:jatkins-ccn
ID: 38829061
Thanks I did not think of the quotes. That worked
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many times while working on a computer regardless of any Operating System, lag and crashes seem to creep in, hindering your working speed. Sometimes, it can also cause your work to be lost unexpectedly and as a result, you are unable to meet your de…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question