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
Solved

Startup Script - 'Net Use /delete' leaves disconnected drive available to users

Posted on 2003-10-31
3
498 Views
Last Modified: 2008-01-09
Hi folks,

I'm trying to put together a startup script to install an application on our network.  Please note that this is not a login script:  it is assigned to the computer as a startup script, allowing the script to run under the local system account.

The script is esentially a batch file, called by a Group Policy object, which passes the admin account password as a parameter:
net use y: \\server\share /user:domain\adminaccount %1
setup.exe
net use y: /delete /user:domain\adminaccount %1

The script runs fine and the program installs but the network drive does not disconnect correctly.  Instead, when the user opens My Computer, the drive is visible as 'Disconnected Network Drive (Y:)'.  This drive cannot be disconnected, it gives the error 'The network connection could not be found'.  Despite appearing as a disconnected drive, if the user has permissions to the target folder, it can be opened and browsed the same as any other working network drive.

I guess I'm looking either for a way to correctly disconnect this drive in the startup script, or else find a way to run this as a login script as I'm confident the drive would disconnect normally then (this would need elevated permissions though in order for the program to install correctly).

I'm on a Windows 2000 domain and am using Group Policy to assign this script.  All of our clients are either Windows 2000 or XP.

Ross

P.S.  I think they need a new question category for this one:  'This question is not urgent but is extremely annoying!'
0
Comment
Question by:myxiplx
3 Comments
 
LVL 1

Author Comment

by:myxiplx
ID: 9656849
Sorry, please ignore this question, I've just solved it.

instead of:
net use y: /delete /user:domain\adminaccount %1

I'm now using:
net use y: /delete

Which seems to work :-)
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 11064423
PAQed, with points refunded (500)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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