BTW, this "shutdown" command is available only on WinXP (or Win2k/NT with Resource Kit). So as you are on a VB project, you might actually consider calling the Win32 API instead, which is examplified in the shutdown commands for Win2k/NT as indicated in that post.