Re: logoff/shutdown script



On Jun 12, 11:56 am, 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 a process
list, 2. search the list for the VMware process 3. if process is 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.

Use Group Policy to run the script. Just an option.

.



Relevant Pages

  • Re: VBscript that restart the domain comptuer
    ... If you have a shutdown script that cleans up the profiles, ... permissions can restart all computers in a list remotely. ... I have already VB script I ...
    (microsoft.public.windows.server.active_directory)
  • Re: Group Policy Lofon Script
    ... The computers are add and I can touch them ... "Costas" wrote: ... Make sure you copy the script to the appropriate ... then added it to sbsUsers LogOn from within Group Policy ...
    (microsoft.public.windows.server.sbs)
  • Re: Printer installation
    ... Loopback Processing of Group Policy ... "Jarno" wrote in message ... |>> script to do this. ... |>> and computers in it. ...
    (microsoft.public.windows.group_policy)
  • Re: logoff/shutdown script
    ... someone tries to log off or shutdown a computer. ... I know where to save the script ... the computers. ... If you are using Windows Vista it will run with no problems, ...
    (microsoft.public.scripting.vbscript)
  • Re: logoff/shutdown script
    ... Are you obliged to use VBScript ?If not i can found solution ... someone tries to log off or shutdown a computer. ... I know where to save the script ... the computers. ...
    (microsoft.public.scripting.vbscript)