Purpose: TechTip: Using Windows Task Scheduler to monitor if WindowViewer is Running



Similar documents
How To Install FactoryTalk Historian Server SE and Add an Menu

Technical Note: Setting Up Authorized Reference GL Account IDs for Use when Posting AP Invoices

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

Lab 05: Deploying Microsoft Office Web Apps Server

Quick Guide to Using your Nokia Phone with Windows 95 Fax - Exchange for Windows 95 or Windows Messaging for Windows 95

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

HART INSTALLATION GUIDE

Version(s) Affected: AccountMate 9 for SQL and Express AccountMate 8 for SQL and Express (AM8.3 and higher)

Cisco Clientless VPN Installation and Troubleshooting Tips

Alarm DB Logger Object for Wonderware Application Server Demo Guide Ver 1.0 Rev 1.0

Decommissioning the original Microsoft Exchange

Software installation

Aras Innovator Internet Explorer Client Configuration

Self Help Guides. Create a New User in a Domain

RELEASE NOTES TABLE OF CONTENTS: SOFTWARE OVERVIEW DESCRIPTION OF GENEMAPPER ID-X SOFTWARE HOTFIX_

Self Help Guides. Setup Exchange with Outlook

Pulse Redundancy. User Guide

Host OS Compatibility Guide

Symantec Enterprise Vault

formerly Help Desk Authority Upgrade Guide

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

Configuring Microsoft Internet Information Service (IIS6 & IIS7)

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

Introduction. Symbol Script Timeout Setting. Sample MES Custom Code in Symbol Script. Application Versions. Sample Code

Introduction. Key Benefits. Data Storage. Data Retrieval. TechTip: Wonderware Historian a Look at Different Data Retrieval Methods.

8/23/13 Configuring the Wonderware SECS-II/GEM Host Creator (SERIAL-RS232)

Activelock Customer Management 1.0

formerly Help Desk Authority HDAccess Administrator Guide

Using Remote Operator 2/2010

Stone Edge Integration Guide

ios Deployment Simplified FileMaker How To Guide

BlackBerry Enterprise Server for Microsoft Office 365. Version: Release Notes

Protecting Data with a Unified Platform

Using Network Application Development (NAD) with InTouch

Installing the BlackBerry Enterprise Server Management Software on an administrator or remote computer

BlackBerry Web Desktop Manager. Version: 5.0 Service Pack: 4. User Guide

Tech Note 53 Configuring the Siemens SINEC H1 CP1413 for Windows NT

NCD ThinPATH Load Balancing Startup Guide

Using Windows Remote Desktop Connection

Guide to Using DoD PKI Certificates in Outlook 2000

Fuse MQ Enterprise Broker Administration Tutorials

Diablo EZReporter. EZ Result Monitor. Copyright 2013, Diablo Analytical, Inc.

BlackBerry World Storefront. Version: 4.3. User Guide

formerly Help Desk Authority Quest Free Network Tools User Manual

Symantec Enterprise Vault

Symantec Enterprise Vault

BlackBerry IT Policy Manager Research In Motion

You can preview your exam by clicking the View Questions button under the Review tab:

Deploying Microsoft Office Web Apps Server and Experiencing Collaboration Features

Nokia E90 Communicator Transferring data

HIGHSEC eid App Administration User Manual

Installing a Browser Security Certificate for PowerChute Business Edition Agent

Installation and Configuration Guide

Spotlight Management Pack for SCOM

Dell Statistica Document Management System (SDMS) Installation Instructions

Enabling Windows Management Instrumentation Guide

Automated Database Backup. Procedure to create an automated database backup using SQL management tools

Dell Statistica Statistica Enterprise Installation Instructions

The Raiser s Edge Mobile Event Management Application Guide

Elavon Payments App. Revolutionising digital interaction.

Nokia E90 Communicator Backing up data

System Center Virtual Machine Manager 2012 R2 Plug-In. Feature Description

This document will explain how to track lost sales opportunities and to identify the report that displays the list of lost sales.

User Guide. BES12 Self-Service

Clickfree Software Frequently Asked Questions (FAQ)

Spotlight Management Pack for SCOM

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

BES10 Self-Service. Version: User Guide

Adobe DNG Flat Field Plug-in (1.0) Software Notices and/or Additional Terms and Conditions

How to Install SSL Certificates on Microsoft Servers

Installing the BlackBerry Enterprise Server Management console with a remote database

Symantec Enterprise Vault

C6 Easy Imaging Total Computer Backup. User Guide

Symantec Enterprise Vault

Symantec Enterprise Vault Technical Note. Troubleshooting the Monitoring database and agents. Windows

Symantec Backup Exec Management Plug-in for VMware User's Guide

This tech note will explain how to use the following parameters in Configurator General Parameters.

Case Study Food Manufacturing Company

Notepads Import File Specification

Introduction. Application Versions. Assumptions. Delete $$ExportTempFolders. Tech Note 930 Wonderware System Platform Clean-up Guide

Automated backup. of the LumaSoft Gas database

Tech Note 213 Finding Memory Leaks in Windows 95/98/98SE Using System Monitor

BlackBerry Web Desktop Manager. User Guide

5.6.2 Optional Lab: Restore Points in Windows Vista

Cisco TelePresence VCR MSE 8220

COM Port Stress Test

Oil & Gas Inventory Management System

Scanner Wedge for Windows Software User Guide

IMX Mobile Proxy Administration

SUPPORT GUIDE FOR NOKIA PC SYNC

Symantec Backup Exec System Recovery Exchange Retrieve Option User's Guide

Deploying BlackBerry Desktop and Handheld Software Research In Motion

Policy Based Encryption Essentials. Administrator Guide

Clickfree Software User Guide

Dell InTrust Preparing for Auditing Microsoft SQL Server

Streamlining Web and Security

Transcription:

NOTE: This article and all content are provided on an "as is" basis without any warranties of any kind, whether express or implied, including, but not limited to the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall Wonderware North be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of information contained in this article. Purpose: Recently we had a customer pose the question How can I keep users from shutting down InTouch? The simple answer is to use the security settings in InTouch to completely lock down the PC. Unfortunately, in this case the PC was used for other applications as well so in some rare cases a user would accidently close down the InTouch application without realizing it. This would result in data loss until the shutdown was discovered. It turns out there is a very easy way to accomplish this with a little known Windows utility called Windows Task Scheduler. You can find this utility in All Programs\Accessories\System Tools\Scheduled Tasks. This utility is available in all versions of Windows. This tip will demonstrate how to use the Task Scheduler to check to see if InTouch is running and if not start it. In order to accomplish this we first need to create a VB Script to check the status of InTouch and restart the view.exe application if necessary. The following procedure does just that.

Procedure: 1. Create the script file that will be used to check and restart WindowViewer as needed. This can be created in a text editor like Notepad: Name: Script: CheckView.VBS set Service = GetObject ("winmgmts:") set Shell = WScript.CreateObject("WScript.Shell") sexename = "view.exe" sapplicationpath = "c:\progra~1\wonderware\intouch\" brunning = false 'Look for our application. Set the flag brunning = true If we see that it is running for each Process in Service.InstancesOf ("Win32_Process") if Process.Name = sexename then brunning=true End If next 'Is our app running? if (not brunning) then 'No it is not, launch it Shell.Run sapplicationpath & sexename end if 2. The next thing we need to do is to call this script as a Scheduled Task. To do this we need to start the Task Scheduler in START\All Programs\Accessories\System Tools\Scheduled Tasks. Then follow the steps below.

3. Click on Add Scheduled Task. 4. Browse to the location of the CheckView.VBS and click Next

5. At this point you should select Daily. You will be able to change this once the task has been created. 6. At this point, select a user account that has the ability to run a VB Script. You will have an opportunity to change this later as needed. The account shown below is the Change Network Account user.

7. Click next and enable the Advanced Properties option. 8. Click Finish and the Advanced Properties show. Select the Schedule tab and click on the Advanced button.

9. Select Repeat Task and set the repeat time to something acceptable. One minute is probably fast enough. 10. Once this is complete you need to right click on the task and select Run. The Task Window provides information on the running of the scheduled tasks. In order to shutdown InTouch Viewer in the future you will have to stop this task. 11. There is much more that can be done with the Windows Task Scheduler. You can find additional information at http://technet.microsoft.com/en-us/library/bb742545.aspx.