Guest spence Posted October 28, 2008 Posted October 28, 2008 Hi all, I'm trying to accomplish what I thought should be a simple task but has turned out to be quite the challenge. My team is building a virtual lab environment using Windows XP machines that revert to a clean state with each reboot. With that in mind, we've been trying to create a logoff script (and many other concepts) to force the computer to shutdown when a user clicks "logoff". I've found all sorts of documented cases where people are having this trouble. A couple things I read indicated that logoff scripts run under User context rather than Administrator. That in mind I went in to secpol.msc and added Users, SYSTEM, Everyone to the "Shut down the system" policy. It didn't make any difference. The logoff scripts we're using to shut the machine down vary from batch files calling shutdown.exe to VBscripts using WMI. All of these work fine when double-clicked but fail when called as a logoff script. If anyone has ANY ideas at all I'd really appreciate hearing them. Thanks, ~spence
Guest Peter Foldes Posted October 29, 2008 Posted October 29, 2008 Re: Shutdown on Logoff Did you try the scripting newsgroup public.windows.server.scripting -- Peter Please Reply to Newsgroup for the benefit of others Requests for assistance by email can not and will not be acknowledged. "spence" <spence@discussions.microsoft.com> wrote in message news:BC272463-A767-4EC4-B78A-7334ABEC989E@microsoft.com... > Hi all, > I'm trying to accomplish what I thought should be a simple task but has > turned out to be quite the challenge. My team is building a virtual lab > environment using Windows XP machines that revert to a clean state with each > reboot. With that in mind, we've been trying to create a logoff script (and > many other concepts) to force the computer to shutdown when a user clicks > "logoff". > > I've found all sorts of documented cases where people are having this > trouble. A couple things I read indicated that logoff scripts run under User > context rather than Administrator. That in mind I went in to secpol.msc and > added Users, SYSTEM, Everyone to the "Shut down the system" policy. It didn't > make any difference. > > The logoff scripts we're using to shut the machine down vary from batch > files calling shutdown.exe to VBscripts using WMI. All of these work fine > when double-clicked but fail when called as a logoff script. > > If anyone has ANY ideas at all I'd really appreciate hearing them. > > Thanks, > ~spence
Recommended Posts