Solved

Net USE command

Posted on 2013-01-28
6
650 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 300 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

The way I use Experts Exchange to assist me in analyzing and diagnosing a problem is I first enter a Verbose Question at Experts Exchange like: Office 2007 will hang when opening and saving files I then launch WordPad (any text editor will do) an…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

831 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