Solved

Mapping drives in windows server 2003.

Posted on 2004-08-22
9
213 Views
Last Modified: 2010-04-19
I know there is a lot of answers for mapping drives in expert-exchange. What I want to do is mapping drives only when logging on the client-computers, not when logging on the server.

Is that possible ??


Regards, Zoodiaq
0
Comment
Question by:Zoodiaq
[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
  • 4
  • 3
9 Comments
 
LVL 16

Expert Comment

by:JamesDS
ID: 11867509
Zoodiaq
You could use a logon script that checks for the servername environment variable before executing:

if %COMPUTERNAME% = server goto end

net use * \\server\resource

:end

Cheers

JamesDS
0
 

Author Comment

by:Zoodiaq
ID: 11890568
I can't get it to work in a .bat file ?!?
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 11890594
Zoodiaq
Post your BAT file and the hostname of your server here

Cheers

JamesDS
0
Independent Software Vendors: 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!

 

Author Comment

by:Zoodiaq
ID: 11960746
Heres my bat,


\\SERVER\Clients\Setup\setup.exe /s STOHNSERVER

net use f: /Delete
net use g: /Delete
net use h: /Delete

net use f: \\server\programs
net use g: \\server\enkelt
net use h: \\server\faelles

net time /set /y
0
 

Author Comment

by:Zoodiaq
ID: 11960749
STOHNSERVER should have been server.
0
 
LVL 16

Accepted Solution

by:
JamesDS earned 250 total points
ID: 11960788
Try this (note double = sign):


\\SERVER\Clients\Setup\setup.exe /s STOHNSERVER

if %COMPUTERNAME% == yourserver goto end

net use f: /Delete
net use g: /Delete
net use h: /Delete

net use f: \\server\programs
net use g: \\server\enkelt
net use h: \\server\faelles

:end

net time /set /y

Cheers

JamesDS


0
 

Author Comment

by:Zoodiaq
ID: 11960803
I'll try, thx.


Zoodiaq
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

630 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