Re: logoff/shutdown script
- From: Omar Abid <omar.abid2006@xxxxxxxxx>
- Date: Thu, 14 Jun 2007 07:57:56 -0000
On 12 juin, 17:56, camille.ree...@xxxxxxxxx wrote:
My manager has asked me to write a script that will run every time
someone tries to log off or shutdown a computer. In the past people
have logged off computers while virtual machines were running and
usually automation would be running at the time or people would be
doing manual QE testing so it would always be a real pain when they
were shut off without warning. He wants me to write a script
(shutdown or logoff or even both) that would check for one of VMware's
executable files that only appear when a VM is running and then prompt
a warning to the user to stop them from shutting down or logging off.
I've done a some reading on the internet about logoff/shutdown scripts
and I've emailed some people that I know. I know that it should be
either a vbscript or jscript file. I know where to save the script
when I'm done and how to configure group policy so that it runs on all
the computers. I even know how to format the script (1. get aprocess
list, 2. search the list for the VMwareprocess3. ifprocessis found
alert the user and cancel shutdown/logoff 4. if not, do nothing). The
only problem is I DON'T KNOW HOW TO WRITE ONE. Do you guys have any
suggestions as far as websites or reading material? Any thoughts
would be appreciated.
Hi man,
I finished the program, i'll post it in my group files and you'll have
only to download it.
If you are using Windows XP you have to already install .net Frame
Work 2.0 that you can download from Microsoft
If you are using Windows Vista it will run with no problems, in the
case that you apperciate the program and find it good and you have
Visual Basic 2005 (Express Edition or SP2) tell me so I can send you
the code source
I think that all right
my email is :omar.abid@xxxxxxxxxxx or omar.abid2006@xxxxxxxxx
The group is : http://groups.google.com/group/VB2005
Omar Abid
.
- Follow-Ups:
- Re: logoff/shutdown script
- From: camille . reeves
- Re: logoff/shutdown script
- References:
- logoff/shutdown script
- From: camille . reeves
- logoff/shutdown script
- Prev by Date: Re: TargetPath Problem
- Next by Date: Install MSI
- Previous by thread: Re: logoff/shutdown script
- Next by thread: Re: logoff/shutdown script
- Index(es):
Relevant Pages
|