Solved

Windows Processes trigger command

Posted on 2011-03-01
1
294 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now