jatkins-ccn
asked on
Net USE command
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Ah sorry, must be another command I got confused with...cool my mistake
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.
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.
ASKER
Thanks I did not think of the quotes. That worked
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?