Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows Processes trigger command

Posted on 2011-03-01
1
Medium Priority
?
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
Toxacon earned 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. T…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

650 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