Jump to content

Killing All Netwok Connections


Recommended Posts

I am writing a script to back up files on my server. Does anyone know of away to drop all network connections so that I can be sure no one is useing any of the files before i back them up. Even a command line program should be fine.

I have tried useing "net sessions /delete" but it requires you to hit y and then enter and "echo y|net sessions /delete" does not work.

Any ideas/suggestions would be appreciated.

Link to comment
Share on other sites

Net Stop Server

...

Net Start Server

Thanks that seems to accomplice what I want. Any idea on how to send a "Y{ENTER}" to the command window. I have never tried it but I have always heard that autoit has a hard time reading a command window.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...