Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

GPO to close off all the applications before taking backup.


Author: Nirmal Sharma MVP

View products that this article applies to.

Summary

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

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB555983, kbhowto, kbpubtypecca, kbpubmvp

↑ Back to the top

Article Info
Article ID : 555983
Revision : 1
Created on : 9/18/2007
Published on : 9/18/2007
Exists online : False
Views : 289