How do I disconnect a network drive via command line?

G

Guest

How do I disconnect a network drive via command line?

I am using Windows 2003 Server. I need to periodically disconnect my network drives via command line. There is the option to DELETE, but I only want to disconnect them. Does anyone know how to do this?


Below is the NET USE syntax / options:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Thanks!
 
H

hal

How do I disconnect a network drive via command line?

I am using Windows 2003 Server. I need to periodically disconnect my network drives via command line. There is the option to DELETE, but I only want to disconnect them. Does anyone know how to do this?


Below is the NET USE syntax / options:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Thanks!

Did you try delete?

Hal
 
G

Guest

There is the option to DELETE, but I only want to disconnect them

I don't want to have to create the network drive again. A disconnect all option would be good. There has to be a way to do it since it is an option through the GUI

----- (e-mail address removed) wrote: ----

On Mon, 5 Jan 2004 09:26:13 -0800, "SniperX
How do I disconnect a network drive via command line
I am using Windows 2003 Server. I need to periodically disconnect my network drives via command line. There is the option to DELETE, but I only want to disconnect them. Does anyone know how to do this
NET US
[devicename | *] [\\computername\sharename[\volume] [password | *]
[/USER:[domainname\]username
[/USER:[dotted domain name\]username
[/USER:[username@dotted domain name
[/SMARTCARD
[/SAVECRED
[[/DELETE] | [/PERSISTENT:{YES | NO}]
NET USE {devicename | *} [password | *] /HOM
NET USE [/PERSISTENT:{YES | NO}
Thanks

Did you try delete

Ha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top