Solved

Net stop command to stop network services?

Posted on 2002-07-19
7
1,001 Views
Last Modified: 2013-12-28
I have a question related to an earlier question below.


http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=winnt&qid=20325048


I have created a batch file to stop Norton Antivirus services before a backup job runs using NET STOP and a post backup batch file runs using NET START  to restart Norton.

My concern is being naked of virus protection during the 3 to 4 hour backup.

Is there a particular service(s) I can STOP that will prevent any network traffic from accessing the server during the backup.

Or other ideas???

Again 300 virtual clams for a speedy answer
0
Comment
Question by:wbaker57
7 Comments
 
LVL 9

Expert Comment

by:dlb6597
ID: 7165697
you can stop the server service, BUT, I would test thoroughly before implementing that change.  The backup might possible rely on the server service.  Clients would not be able to access the server etc.  
0
 
LVL 86

Expert Comment

by:jkr
ID: 7165773
>>that will prevent any network traffic from accessing the server

You could - apart from stopping a service - use 'net share' to limit the number of 'allowed users' to 0 and set it to the appropriate value (or /unlimited) later again, e.g.

net share HOMEDIRS /users:0

#Do backup

net share HOMEDIRS /users /unlimited
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7165924
I have deleted the 2 duplicate questions

Computer101
E-E Moderator
0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
LVL 9

Accepted Solution

by:
schmiegu earned 300 total points
ID: 7168667
To disallow new connections (except for admins):

net pause netlogon

To disconnect active sessions:

net session /delete

To allow new connections again:

net continue netlogon
0
 

Author Comment

by:wbaker57
ID: 7169146
to schmiegu,

This sounds like what I'm looking for. I will be testing today and will repond afterwards.

Thanks
0
 

Author Comment

by:wbaker57
ID: 7170759
to all,

thanks so far but I have to leave town - returning 8/1

0
 

Author Comment

by:wbaker57
ID: 7199144
Thanks, but in the interim the server was replaced becuase of disk controller issues. but I'm awarding points as promised for the quick repsonses. Yours seemed most relevant though I never had to impliment it.

Thanks again....
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

828 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