Solved

Enforce Mapped Drive

Posted on 2010-09-20
2
259 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
Azure Remote Apps and an Access program 5 84
Remove second installation of Windows 10 7 83
iPhone excel activation issues 11 99
COPY from excel to notepad 3 68
This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
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…
Viewers will learn the different options available in the Backstage view in Excel 2013.
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 …

840 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