?
Solved

Net USE command

Posted on 2013-01-28
6
Medium Priority
?
666 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In a hurry?.. scroll down to "HERE's HOW TO DO IT" Section. Greetings All, I was going to post this as question/solution, but its seems more appropriate as an article considering its length.  I felt it important to illucidate all the details c…
This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
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…

770 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