So there I was, wondering how to log off from a session after I had finshed my script.
I had to run the the thing under elevated privlages and I was running it from the "run once"
key in the registry, so I wanted it to log off ASAP.
I looked around and poked around and looked in my books, and then I ran across this piece of wisdom from
Set oShell = CreateObject("WScript.Shell")
oShell.Run "logoff", 0, False
Yep, as simple as that. I have tried it on Vista 32 and 64 and it works just as you would hope.