GPO to close off all the applications before taking backup.

Article translations Article translations
Article ID: 555983 - View products that this article applies to.
Author: Nirmal Sharma MVP
Expand all | Collapse all

SUMMARY

This article explains how you can close all the applications / processes forcefully before you perform the backup.

MORE INFORMATION

Let's say you want to implement a policy setting that can be used to close off all the programs running in computer. Actually speaking this is not bit easy but you can deploy a script that can do your job at specified time using Task Scheduler service.
 
To accomplish above you need the followings:
 
  1. A startup or logon script.
  2. Tlist.exe to display list of processes running on the computer and kill.exe to kill the processes running except Windows defaults.
  3. AT command to schedule the script at specified time.
  4. You need to know the *process name* of the application you want to close or kill. You can use resource kit tool called "kill.exe* to close the process of an application. When you kill the process, application will be closed automatically.
  5. You need to run a script using Group Policy which will run at 10.00 PM everyday. You can achieve using Task Scheduler service or using AT command in a script.
  6. Deploy this script using Group Policy.
 
Files opened by network clients must also be closed in order to perform backup. You can use the command outlined here to close all opened files by network users.  
 
Please follow this article:
http://support.microsoft.com/?kbid=290585
 
If you don't know what all applications clients are running then you need to use some kind of programming stuff which can identify and close the application. Likewise all running applications can be closed by killing the main process that is Explorer.exe. If you kill explorer.exe then you need to re-run it in order to perform backup. Using some programming stuffs you can achieve this.
 
Here is an example:
 
1. You create a script.
2. Use kill.exe in this cript to end PID of explorer.exe or kill this process.
3. Run a command again to re-start this process (explorer.exe) to lunch desktop and then perform backup.
 

Properties

Article ID: 555983 - Last Review: September 18, 2007 - Revision: 1.0
APPLIES TO
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Web Edition
Keywords: 
kbpubmvp kbpubtypecca kbhowto KB555983
COMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com