>Windows XP ??
Sorry, I forgot to mention this. Yes, it on Windows XP.
>If shutdown -s -t 0 doesn't work see if you have a policy that prohibits shutting down while there is no logged-on user.
>Open local policies, security options and enable the shutdown: Allow system to be shut down without having to log on policy.
Where do I find the local policies?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)