Solved

Windows Processes trigger command

Posted on 2011-03-01
1
297 Views
Last Modified: 2012-05-11
Dear all,

Is there a way to check Windows Processes and when a particular program is ready and closed a command, batch file etc is triggered to switch off the computer.

I am using ViewClient 4.5 (VMware) and this allows you to logon to the virtual desktop using a single sign on. Now what I want is that when a users press logoff on the virtual desktop the process automatically tops and this switch off the physical pc.
0
Comment
Question by:casscar
1 Comment
 
LVL 8

Accepted Solution

by:
Toxacon earned 500 total points
ID: 35043391
So, if I understand this right, when you take a logoff from the virtual you want the physical host to shut down.

Let's put it this way:

I assume that your user account and password are the same on both virtual and physical PC. I also assume that you have admin permissions on both computers with that account.

Create a batch file on the virtual:

shutdown /s /m \\physicalpcname /t 30
logoff

Open in new window


Run the batch file. It will initiate shutdown of the physical pc in 30 seconds after running and it will log you off from the virtual pc.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

839 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