Jump to content

Recommended Posts

Posted

Computer reboot after successfully installing all the hotfixes & applications?

And remove all the screensavers.?

Read about psshutdown on the MSFN guide but I got an error..


Posted

use this command instead.

shutdown -r -f -t 120 -c "Windows XP will now restart in 2 minutes, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

set the time you want before reboot with the -t switch.

Right now it is set for -t 120 or 120 seconds ( 2 minutes)

Posted

The command didn't work for me :| I put it in my bat file at the bottom... see below, what am i doing wrong i bet it isn't even meant to go in the bat file is it? :|

CLS

@echo off

ECHO.

ECHO.

ECHO.

ECHO Updating Windows Components...

ECHO.

ECHO 1 of 4 - Installing Direct X v9.0b...

start /wait %systemdrive%\install\dx9b\dxsetup.exe /opk

ECHO.

ECHO 2 of 4 - Installing Windows Media Player v9.0...

start /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N

ECHO.

ECHO 3 of 4 - Installing MSN Messenger v6.0...

start /wait %systemdrive%\install\MSN6\MsnMsgs.msi /QB

ECHO.

ECHO 4 of 4 - Windows Script v5.6...

start /wait %systemdrive%\install\Hotfixes\js56nen.exe /Q:A /R:N

ECHO.

Echo.

ECHO Installing Critical Updates...

ECHO.

ECHO 1 of 24 - Q328310

start /wait %systemdrive%\install\Hotfixes\Q328310_WXP_SP2_en.exe /Q /M /Z

ECHO.

ECHO 2 of 24 - Q329048

start /wait %systemdrive%\install\Hotfixes\Q329048_xp.exe /Q /M /Z

ECHO.

ECHO 3 of 24 - Q329115

start /wait %systemdrive%\install\Hotfixes\Q329115_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 4 of 24 - Q329170

start /wait %systemdrive%\install\Hotfixes\Q329170_WXP_SP2_EN.exe /Q /M /Z

ECHO.

ECHO 5 of 24 - Q329390

start /wait %systemdrive%\install\Hotfixes\Q329390_WXP.exe /Q /M /Z

ECHO.

ECHO 6 of 24 - Q329834

start /wait %systemdrive%\install\Hotfixes\Q329834_WXP_SP2_en.exe /Q /M /Z

ECHO.

ECHO 7 of 24 - Q330994

start /wait %systemdrive%\install\Hotfixes\Q330994.exe /Q:A /R:N

ECHO.

ECHO 8 of 24 - Q331953

start /wait %systemdrive%\install\Hotfixes\Q331953_WXP_en.exe /Q /M /Z

ECHO.

ECHO 9 of 24 - Q810565

start /wait %systemdrive%\install\Hotfixes\Q810565_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 10 of 24 - Q810577

start /wait %systemdrive%\install\Hotfixes\Q810577_WXP_en.exe /Q /M /Z

ECHO.

ECHO 11 of 24 - Q810833

start /wait %systemdrive%\install\Hotfixes\Q810833_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 12 of 24 - Q811493

start /wait %systemdrive%\install\Hotfixes\Q811493_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 13 of 24 - Q811630

start /wait %systemdrive%\install\Hotfixes\Q811630_WXP_SP2_EN.exe /Q /M /Z

ECHO.

ECHO 14 of 24 - Q814033

start /wait %systemdrive%\install\Hotfixes\Q814033_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 15 of 24 - Q815021

start /wait %systemdrive%\install\Hotfixes\Q815021_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 16 of 24 - Q817287

start /wait %systemdrive%\install\Hotfixes\Q817287.exe /Q:A /R:N

ECHO.

ECHO 17 of 24 - Q817606

start /wait %systemdrive%\install\Hotfixes\Q817606_WXP_SP2_x86_ENU.exe /Q /M /Z

ECHO.

ECHO 18 of 24 - Q822925

start /wait %systemdrive%\install\Hotfixes\Q822925.exe /Q:A /R:N

ECHO.

ECHO 19 of 24 - Q823718

start /wait %systemdrive%\install\Hotfixes\Q823718_MDAC_SecurityPatch.exe /Q /C:"dahotfix /Q /N"

ECHO.

ECHO 20 of 24 - KB817787

start /wait %systemdrive%\install\Hotfixes\WindowsMedia8-KB817787-x86-ENU.exe /Q:A /R:N

ECHO.

ECHO 21 of 24 - KB329441

start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB329441-x86-ENU.exe /Q /M /Z

ECHO.

ECHO 22 of 24 - KB821557

start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB821557-x86-ENU.exe /Q /M /Z

ECHO.

ECHO 23 of 24 - KB824105

start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB824105-x86-ENU-express.exe /Q /M /Z

ECHO.

ECHO 24 of 24 - KB824146

start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB824146-x86-ENU-express.exe /Q /M /Z

ECHO.

ECHO.

ECHO.

ECHO Windows Will Restart Automatically In 2 Minutes To Complete Installation...

ECHO.

ECHO.

ECHO.

PAUSE

shutdown -r -f -t 120 -c

EXIT

Posted

Why are you using the pause command?

That makes the user have to press a key to continue.

Also you should put the "Windows Will Restart Automatically In 2 Minutes To Complete Installation..." after the -c .. like this:

shutdown -r -f -t 120 -c "Windows Will Restart Automatically In 2 Minutes To Complete Installation..."

Posted

Yes i have done now but as i said it doesn't work anyway... do you think it could of been the pause command that caused it not to work or do you think i should add the .exe just to be safe?

Posted

Yes, add the .exe to the end.

In a test I ran, without the .exe on the end of shutdown the batch would often loop over and over again. I know, its strange.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...