logoff scripts?

  • Thread starter Thread starter Dan
  • Start date Start date
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
 
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.
 
...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
 
Back
Top