Re: logoff/shutdown script



On Jun 12, 1:22 pm, Omar Abid <omar.abid2006@xxxxxxxxx> wrote:
On 12 juin, 18:12, camille.ree...@xxxxxxxxx wrote:





No, I don't have to. I read on the internet that .vbs or .js scripts
are the "most powerful" languages to use for logon/logoff scripts and
a colleague of mine told me that the availability and quality of
support for VBScript is far better than Jscript. I'm open to
suggestions.

On Jun 12, 11:59 am, Omar Abid <omar.abid2...@xxxxxxxxx> wrote:

Hi,
Are you obliged to use VBScript ?If not i can found solution
Omar Abid
camille.ree...@xxxxxxxxx a écrit :

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.- Hide quoted text -

- Show quoted text -- Masquer le texte des messages précédents -

- Afficher le texte des messages précédents -

Ok, I'm a VB programer and what can I do for you is to create a
program that show all running process
This will take a day or two depending on my work then I'll send it by
mail
Send me your email (mine is : omar.abid2006@xxxxxxxxxxx)
Omar Abid- Hide quoted text -

- Show quoted text -

OMG!! THANK YOU THANK YOU THANK YOU SO MUCH. You really didn't have to
offer this to me. I really appreciate it. I went on the MSDN
website <http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/script56/html/cfd87c86-9217-4783-9eba-4fee0261ca06.asp> to try and
learn about vbscript but I didn't know where to start. You are a
blessing. This will definitely help me get started. I just sent you
my email address but it bounced back. My company email is
kreaves@xxxxxxxxxxxxxxxxxx

.



Relevant Pages

  • Re: Ping Steve Yandl or other VBScript gurus
    ... post on the vbscript newsgroup and that got me going in the right direction. ... 'Run macro named createResumeFromFile, which has no arguments, and catch its ... 'Exit the script with the value of the return code from the macro/function. ... how to do what I want to do entirely in VBA or VBScript; ...
    (microsoft.public.word.vba.general)
  • Re: LDAP query information
    ... execution of the vbscript? ... The error message indicates the line number in the script, ... Dim strBase, strFilter, strAttributes, strQuery, adoRecordset ... ' Construct LDAP syntax query. ...
    (microsoft.public.windows.server.scripting)
  • Re: Thank you Richard, Paul and urkec
    ... only built-in way to communicate with the person running the script is ... It is documented in the VBScript help file Script56.chm. ... You can use the ADO and ADOX objects to analyze and manipulate an existing ... dir cmd of each folder to a text file and have my script use that file ...
    (microsoft.public.scripting.vbscript)
  • Re: Ping Steve Yandl or other VBScript gurus
    ... Steve Yandl suggested using VBScript when I asked ... I'm trying to add one small wrinkle to the script and can't figure ... The macro that I am launching from the VBScript is ... be that 'dim bWaitOnReturn' didn't define the variable as Boolean but ...
    (microsoft.public.word.vba.general)
  • 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)