RE: Reboot from Startup script--failing!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeff (jjb_at_news.postalias)
Date: 06/29/04


Date: Tue, 29 Jun 2004 09:23:06 -0700


>I would like to suggest that you use gpresult tool
>check if the client apply the group policy.

The client definitely does apply the group policy,
and the startup scripts run as expected. Here's
what we see, and the work-around that we've found:

Some of our local group policies do things that might
require a reboot. If a reboot is required, a particular
registry value (that we created) is set to 1.

The last group policy in the ordered list
has a startup script that checks the registry
value and reboots if it is set to 1.

We know from testing that the registry key *does*
get set, and more importantly, if we use the
"psshutdown" tool from SysInternals

    psshutdown -r -f -t 00

the computer reboots, as expected. However,

    shutdown -r -f -t 00

has no effect, and no error message is
logged on the client. Using the Reboot() method
in a WMI script doesn't work, either. The
shutdown/reboot request just gets ignored.

So, we've found that replacing "shutdown"
with "psshutdown" in the script fixes the problem,
but we still don't understand why there was any
problem--that is, we can't imagine why the
built-in shutdown mechanism doesn't work, or
what aspect of Group Policy might have broken
it from within a startup script. ??



Relevant Pages

  • Re: Moving Computer Accounts to a different OU
    ... miutes on the client machines. ... You can change this in the Group Policy ... certain settings only apply during startup but most other ... > Installation" settings will only be configured with a reboot. ...
    (microsoft.public.windows.server.active_directory)
  • Re: time sync.
    ... run a a startup script (for the computer startup) that forces the computer sync with the Time server on your domain, reboot the client and check. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Problem connection XP SP2 Workstation after installing SBS 2k3
    ... Thanks for updates. ... I find some issue that will blocked the group policy applied properly to ... the special client computer, except the XP firewall. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Advanced Client Installations on Restricted W2K machines
    ... Add the group policy snap in to MMC then choose default domain policy. ... client and will need to re-direct the source file resolution to that source. ... >> user to launch the SMS client installation as an administrative user. ... >>> the equation and install the SMS client via login scripts, ...
    (microsoft.public.sms.admin)
  • RE: Install printers to groups of users or computers by using Group Policy
    ... I understand that you want to install share ... printer on clients by SBS Group Policy. ... Based on my research, in SBS 2003 environment, the client printer is ...
    (microsoft.public.windows.server.sbs)