How to run a batch before window log off

We have a situation. We monitor an application very closely for failure rate. Many users are currently just logging off windows when leaving work. When they use windows log off it kills this application which intern return non-zero exit code(indicating application
problem). 
Is there a way to run a batch/powershell script to close application first(we have a method to close it gracefully) before log off process is triggered by windows 7.
We tried putting a routine in GPO log off script. But widows log off kills all applications before the routine has chance to run.
Please help.

Hi,
Create a batch file and insert the shutdown command in the last line. When you want to shutdown computer, just run this batch file.
Alex Zhao
TechNet Community Support

Similar Messages

  • How to run a batch file as windows Nt service

    Hi friends
    I want to know how to run a batch file as windows NT service.
    I got some information in the following link
    http://support.microsoft.com/kb/q243486/
    I tried it but i want to know what we need to include in Autoexnt.bat
    And one thing i need Instexnt.exe file. I cannot find tht file.
    Please search tht file and send me tht file or else send the link in which this file is present
    Please give me reply fast.its very urgent.
    Thanks in advance.

    Hi,
    My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
    I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
    I can keep the JAR FIle either in the Oracle Server or in the Application Server.
    The Java program is to convert XML Format FIle to PDF and MS Word format.
    Oracle Version : 10g 2.0.1.0.
    Thanks in advance
    Rizly

  • How to run GINA when windows log off ?

    I test pGina program which was create from GINA. I want create program for logon windows with C#. I wonder when user log off windows why pGina can run application for login windows. I think application can run when start windows only . How pGina can run
    program when user click log off button ?

    Hi mmc01,
    I'm afraid you posted your question on the wrong forum. This forum is dedicated to Project Server concerns, the Microsoft enterprise scheduling & planning application.
    Please go to an appropriate forum in order to have an helpful hand.
    Cheers.
    Guillaume Rouyre - MBA, MCP, MCTS

  • How to run a batch file

    Hi,
    How to run a batch file from Oracle. Is it possible directly from PLSQl, or should I write the java code.
    Oracle Version: 10g 2.0.1.0.
    Thanks in advance
    Rizly

    Hi,
    My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
    I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
    I can keep the JAR FIle either in the Oracle Server or in the Application Server.
    The Java program is to convert XML Format FIle to PDF and MS Word format.
    Oracle Version : 10g 2.0.1.0.
    Thanks in advance
    Rizly

  • How to run the batch files

    Hi Experts,
    I am trying to implement automatic cache purging every day at specified time and i created txt file with SApurge All cache() and created bat file with nqcmd -q Analyticsweb -u username -p password -s (txt file location).
    Now i want to run this bat file daily at specified time with out executing manually may i know how to run the batch file at specified time .
    Thanks,

    There is task type as command in workflow manager if you want you can go for that during the load
    nqcmd -d "AnalyticsWeb" -u Administrator -p Administrator -s "D:\PowerCenter8.1.1\server\infa_shared\SrcFiles\1_BIPurgeCache.txt"
    Check these urls
    http://docs.oracle.com/cd/E12103_01/books/AnySched/AnySched_Scripts3.html
    http://deliverbi.blogspot.com/2011/12/purge-all-cache-from-dashboard.html

  • How to run .java file in windows ?

    How to run .java file in windows without installing any program? Thx!

    First, U must make sure that there is JDK on your computer
    Then, set the envionment variables which the os can find your compiler and interpreter: javac java
    after those, you must complie your .java file to .class file, then you can excute it by java, for example " java helloworld"

  • How to run rmiregistry each time windows starts

    Can anybody tell me how to run rmiregistry each time windows starts.
    I want to start my RMIserver automatically to work.First I need to start rmiregistry then I want to start my RMIServer class as windows service.

    Stick a shorcut to it in your Startup folder or create a new Key in the registry @ HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    If you have arguements to rimreg (like port number) create a .bat script and use that to launch it.

  • Where windows batch file which log off windows lies ?

    where windows batch file which log off windows lies ?
    to which me can call from java code to log off my pc?

    You should use a brute-force algorithm on the on/off switch on your pc. I suggest a rate of 30 hits per minute.

  • How to run my macbook in windows mode

    how to run my macbook in windows mode, i have a software i need to install on my macbookpro but this software can not be run on the macbook pro software. i was told i can rum my apple in a windows mode?????

    Yes, called BootCamp. Enjoy:  http://www.apple.com/support/bootcamp/
    Or you can run the Windows OS virtualized using VMWare Fusion ($49), Parallels Desktop ($99) or Oracle VirtualBox (free). This lets you run both OS at the same time: MacOS is the host and Windows the guest.

  • How to run a batch file clicking a button?

    Hi All,
    Can you tell me anyone how to run a batch file clicking a button? And also the progress bar showing the progress.
    Arif

    As said: write the insert statement like above (of course replace the databaselink, column and table names with your own) in a stored procedure and call this procedure in the WHEN-BUTTON-PRESSED Trigger.
    As for the progress bar: how many records are you processing and how is the network connection between your database server? As above method is rather fast it might take just a few seconds and you could spare you the progress bar (this might be a little tricky to implement).
    cheers

  • Starting Lookout before windows log on.

    Is there a way to have Lookout start before the Windows Log on? Example: The PC crashes at night and reboots it's self. With out someone to log on to windows, Lookout doesn't start. Any ideas? Thanks< Mark.

    Hi Mark,
    I don't think we can run any application before logging on to the system. So, one solution would be to setup an automatic logon. If this is a viable option for you, you can search the Net for how to setup your machine to automatically logon a pre-determined user. For Win9x systems there's a TweakUI utility from Microsoft and for NT there are registry entries that you must set.
    Hope this helps,
    Khalid

  • How to run an application on windows mobile 6 device ?

    Hi everybody,
    How can you run an application on a windows mobile 6 device with the new SDK 3.0 ?
    Can you launch a MIDLET like any other program ? or running your MIDLET on windows mobile 6 is only for testing while you are developing.
    When you finished your MIDLET, can you copy the jar file to the mobile device with windows mobile 6 and to run it anytime ?
    Thank you.

    Its simply a matter of opinion, but I'm 3-months-in, developing for WM5 + WM6 and the only usable solution I've found that has the correct look and feel on Windows Mobile as well as JSR support is IBM's J9.
    It's not free, but I searched high and low, and it's the only product that I was happy with.
    Here's a [screenshot of it running my application on WM6 emulator|http://3.bp.blogspot.com/_9hmP3Ho0t14/S7eDTXfkE9I/AAAAAAAAAa0/ISZ-HohZQDs/s1600/wm6.png] .
    Here's a [quick article I wrote for it.|http://fatbuttlarry.blogspot.com/search?updated-max=2010-02-16T11%3A34%3A00-08%3A00&max-results=7] Remember, it's NOT free. Pricing is very fair, but you'll have to license it to use and distribute it.
    -Tres

  • How to run a batch file using tigger....

    Hi, i am trying run a batch file using a trigger on a table.
    say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2)
    the values of col_2 keeps changing and col_1 are constant
    whenever the value of col_2 in any row changes from "on" to "off" i want to run a batch file C:\Users\ABC\Desktop\test.bat
    i did some searching but couldn't find any solution. Thanks in advance
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    sorry wrong foum to post.
    will post in the correct one
    how to run batch file using trigger?

    Hallo,
    welcome to the forum.
    This is the forum for the tool {forum:id=260}. Your question should be placed in {forum:id=75} or {forum:id=61}.
    When you post your question there please provide additional information like db version, what kind of trigger you want to use, how you want to prevent the execution when the transaction is rolled back... {message:id=9360002}
    Regards
    Marcus

  • How to run a command line window from code?

    In an application I need to run a dll file with a few arguements. These arguements can be given in the command line window. The execution of the dll file will return a string that i need to get (for the parsing etc).
    1. How can I open a command line window from the Java code?
    2. How to run commands on it?
    3. How to get the results of the commands from the command line into my program?

    In an application I need to run a dll file with a few
    arguements. These arguements can be given in the
    command line window. The execution of the dll file
    will return a string that i need to get (for the
    parsing etc).
    A dll is used by other programs. It is not possible to run it from the command line.

  • How to run the Batch input session(SM35) in background thru Report program

    Hi Experts,
    I am working in one modification report requirement ,the report is Mass upload will update and run the file via batch input session. The client requirement is to implement the report execution in background mode , the batch input session will process automatically (ie. the job runs the batch input session in background and process the session ends).
    Currently, the report calls SM35 to write a batch input session and the user manually selects the session and record the transactions.
    Once the Transaction enters and the selection-screen inputs are given, then the transaction executed in background mode and all the above batch input process to be implemented.
    Please advise and guide me, how to proceed.
    I need your guidance to proceed via Call transaction using bdcdata statement, if it can be achieved the requirement.
    Thanks & Regards
    San.

    Hi Arabind Prasad,
    Thanks for your inputs.
    I know the process of the report Execution in background and job steps.
    I want the inputs for how to upload thru Batch input session in background job and the session should also processed automatically
    Currently the report logic declared like call transaction 'SM35' and skip first screen.Once the report (tcode) executed (not in background) It writes one session in SM35. The user should select the session and process the transaction manually.
    The new requirement is, if the report (tcode) executes in background mode...what and how the batch input session should be declared and how it process automatically (like you said mode 'N').
    Hope I am clear in my query.
    Please advise.
    Regards
    San.
    Edited by: San Learner on Mar 1, 2011 7:16 PM

Maybe you are looking for

  • Stuck with SpryEffects

    My tables with master / detail relationship work fine on this page. The SpryEffects.js has been referenced from the head section. So far so good. Now I got stuck with applying effects to the div including the album covers. How can I exactly create an

  • My Toshiba L305 - Both Buttons Broken (AGAIN) - TOSHIBA DOES NOT CARE ABOUT THEIR CUSTOMERS

    So my left button broke (i didn't do anything) and so since it was under warranty, I was directed to a local authorized repair shop and they had to order the whole new keyboard that includes the little piece of junk plastic piece underneath the butto

  • Changing standard output from Text to XML customization?

    Hi Team, We wanted to get an excel output for a standard reports Accounts Payables Trial Balance, we changed the output from Text to XML. We did not attach a data definition or template definition ..we just wanted to see the XML output.. We got an er

  • Can I use a I-pod mini 4GB installation cd for my 6GB I-pod??

    I am buying my friend's 6GB i-pod mini, can I use my mom's 4GB i-pod installation cd to install it??

  • Acessing Raw content through SOAP lookup

    Hi All, I have been using Bhavesh's Blog about SOAP Lookup /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function I have been able to make successful conenction and See the payload. But we have session ID, thats part o