Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting or Disconnecting a Mapped Drive from a logon script. 1

Status
Not open for further replies.

QueTech

MIS
Apr 13, 2003
79
US
Hi,

I working in a Window Server 2003 environment and all workstations are Win XP. I am attempting to install Winzip 9.0 using a logon script. The script listed below works well, with the one exception. It does not disconnect the mapped drive created during the logon and install. Please find listed below the script used. Thanks


NET USE F: /DELETE /PERSISTENT:YES
NET USE F: \\PASSRV01\WinZip

xcopy F:\winzip\*.* c:\winzip\*.*
C:\winzip\winzip32.exe /noqp /notip /autoinstall

NET USE F: /DELETE /PERSISTENT:YES
 
Instead of using the /persisten switch, try this:

net use f: /delete

-or-

net use /delete f:

Both of those should work fine.


-------------------------------
Security Software
Secure your network!
-------------------------------
 
Hi,

My thanks to Mark01 the net use F:/delete worked. I do have one last question. To make this script its most efficient I need to check first whether C:\Winzip already exist. Can any on help a command that will do this for me?
 
i do have another question. Is there a way to use a runas command in the script and what would my syntax be?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top