logoff scripts?

D

Dan

Hello,
I've finally gotten to the point where my scripts work
but now they won't run at logoff. What I have is a vb
script that calls a batch file. The vb script asks for a
simpl yes or no and if yes runs the batch file. I am
running the script visible through GPO and I can get it to
the point where the user can answer yes or no. However,
if the user answers yes, as the batch file starts the
logoff process completes and nothing is carried out.
There's no issue if the user says no because the script is
set to end at that point.
How can I make it so that my batch file will finish if the
user answers yes?
Thanks,
Dan
 
H

Herb Martin

You have very limited time in a logoff script - 30 seconds
I think.

You might also have a bug in the script so we must presume
you have thoroughly tested it when NOT logging off.
 
Y

Yevgen Lazaryev

...I assume you run the batch file using WshShell.Run .... If so did you set
the bWaitOnReturn parameter to TRUE ..? Like ...

WshShell.Run "batch.cmd", 0, true


"Dan" <[email protected]> a écrit dans le message de
| Hello,
| I've finally gotten to the point where my scripts work
| but now they won't run at logoff. What I have is a vb
| script that calls a batch file. The vb script asks for a
| simpl yes or no and if yes runs the batch file. I am
| running the script visible through GPO and I can get it to
| the point where the user can answer yes or no. However,
| if the user answers yes, as the batch file starts the
| logoff process completes and nothing is carried out.
| There's no issue if the user says no because the script is
| set to end at that point.
| How can I make it so that my batch file will finish if the
| user answers yes?
| Thanks,
| Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top