General discussion
-
CreatorTopic
-
January 24, 2000 at 9:58 am #2081795
How to create mapping drives in Windows
Lockedby quangtranil · about 23 years, 2 months ago
I tried to create mapping drives in Windows NT Server 4.0, but it would not recognize the commands. Please help. Below is a sample of my login script.
ECHO OFF
net use z: /delete
net use z: \\server\directory
net use y: /delete
net use y: \\server\directory
net use m: /delete
net use m: \\server\directoryif “%username%” = “tran_quang”
then net use o: \\server\Folder
endif %member% = “it”
then net use o: \\server\Folder\Subfolder
endTopic is locked -
CreatorTopic
All Comments
-
AuthorReplies
-
-
January 24, 2000 at 10:05 am #3897161
How to create mapping drives in Windows
by mtnsqs · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
Check the permissions on the directories you are trying to map to.
Also try map to a know share name instead
-
September 20, 2000 at 7:02 pm #3742379
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 24, 2000 at 10:35 am #3897159
How to create mapping drives in Windows
by robert w. · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
stick a “pause” command into your batch file..that might help you in pin point where the pb is. Also, check your policy. Uncheck Remove the “Map Network Drive” and “Disconnect Network Drive options”, uncheck Hide Network Neighborhood, and uncheck Hide Drives in My Computer. Those things gave me major headacks in the past.
-
September 20, 2000 at 7:02 pm #3742380
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 24, 2000 at 11:01 am #3897157
How to create mapping drives in Windows
by ravi · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
If you have set “No Access” permission on NET.EXE, you won’t be abe to use the NET command. So, if the suggestions above are not working, you may want to check this.
Good luck.
-
September 20, 2000 at 7:02 pm #3742381
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 24, 2000 at 12:16 pm #3897156
How to create mapping drives in Windows
by mrshawng · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
In your example, you are mapping to “\\server\directory” where “directory” should be a share on the server, if it isn’t a share, that is one problem (same goes for the last net use, “Folder” has to be a share.).
The “if” statement requires two equal signs (if “%username%”==”tran_quang”. Also, put the net use command on the same line with the if, and get rid of the “then” and “end” they aren’t valid commands.
%member% is not a default variable. If you’re checking the users group membership, try “ifmember.exe” it is a NT 4.0 resource kit utility.
REM out the ECHO OFF line so you can see what the script is trying to do, and then what it actually does. Put a pause at the end of the file, and if necessary at various points within.You can type the command and then /? to get information on how to use most of the NT command line programs.
Hope this helps.
-
September 20, 2000 at 7:02 pm #3742382
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 24, 2000 at 2:11 pm #3897152
How to create mapping drives in Windows
by kellyst · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
time to buy an NT book, don’t you think? You can map to shares not directories. Spend the 30 bucks and get a book.
-
September 20, 2000 at 7:02 pm #3742383
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 25, 2000 at 2:29 am #3897131
How to create mapping drives in Windows
by stephen_ski · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
As Kelly Quite rightly stated you cannot create drive mapping only share mappings…
take your folders apply permissions and then share them (for extra security apply NTFS permissions aswell) then apply your scriptAlso you may want to seriously consider a good book MaRK NAMINSKI`s book on NT4 is good
-
September 20, 2000 at 7:02 pm #3742384
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 25, 2000 at 7:48 pm #3897104
How to create mapping drives in Windows
by tazz · about 23 years, 2 months ago
In reply to How to create mapping drives in Windows
Do not map to drive Z. I’ve read a technet article saying the netlogon pipe maps drive Z during logon (invisibly) and disconnects after logon. This is why you can use drive Z after logon (e.g. to connect Iomega ZIP-drive)
We had problems within a Kix script using drive Z. when we altered the drive mapping to Z it worked.Good luck
-
September 20, 2000 at 7:02 pm #3742385
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
January 28, 2000 at 9:11 am #3896980
How to create mapping drives in Windows
by dbowlin · about 23 years, 1 month ago
In reply to How to create mapping drives in Windows
You must first share the folders you are mapping as drives. Also best not to use Z drive. Rather than deleting the mappings individually, you may want to try the following to delete all existing network resource mappings: net use * /delete /yes
-
September 20, 2000 at 7:02 pm #3742386
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
The question was auto-closed by TechRepublic
-
-
September 20, 2000 at 7:02 pm #3742378
How to create mapping drives in Windows
by quangtranil · about 22 years, 6 months ago
In reply to How to create mapping drives in Windows
This question was auto closed due to inactivity
-
-
AuthorReplies