Solved

Enforce Mapped Drive

Posted on 2010-09-20
2
258 Views
Last Modified: 2012-05-10
Dear all,

I have the following mapped drives login script and I would like to enforce them /y  by default.
Since sometimes it ask a user if he would like to disconnect and connect again.

NET USE J: /DELETE
NET USE J: \\testing.com\Shared to all"

NET USE Z: /DELETE
NET USE Z: \\testing.com\Public

Which command i have to use?

Regards,
0
Comment
Question by:casscar
2 Comments
 
LVL 5

Accepted Solution

by:
TimAllan earned 500 total points
ID: 33714878
To force a deletion, try using :
net use J: /delete /no

Once it's deleted, it shouldnt have an issue reconnecting up again.  
0
 

Author Closing Comment

by:casscar
ID: 34101616
good
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Data-Updating-VBA-V3 15 45
Cannot get OneDrive working on Wndows 10 2 49
HxTsr.exe consuming resources 2 412
Newly reinstalled FoxPro 9 has serious problems Please advise 6 87
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now