Hi thanks for all your input i am allmost done with the script. Just one last question: How would i go about executing the:
rundll32 user32.dll,ExitWindowsEx from kix.

Igain, thank you very much.

Regards Glenn