Anyone here have some good tips to get a .vbs script to run when a
computer is logged of *or* shut down?

I've been trying all kinds of things and got it to work correctly once,
most of the time the machine acts like the script doesn't run at all.

Windows 7 64bit machines.