Solved

Need vbscript to map drives based on IP address/subnet

Posted on 2008-10-22
2
793 Views
Last Modified: 2012-05-05
I need a vbscript to determine the IP address/subnet of a pc and map drives accordingly.
If subnet is 192.168.1.x then map x:\\dc1\share, y:\\dc1\share2, etc.
If subnet is 172.16.2.x then map x:\\dc2/share, y:\\dc2\share2, etc.

0
Comment
Question by:FIFBA
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
ID: 22780918
0
 
LVL 65

Assisted Solution

by:RobSampson
RobSampson earned 250 total points
ID: 22781233
Hi, you can also look at the code that I provided here:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23749378.html

Regards,

Rob.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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