How to patch MS03-32 via cmd script

Discussion in 'ASP .Net' started by Anonieko, Apr 24, 2007.

  1. Anonieko

    Anonieko Guest

    REM This batch file addresses issues that exist with MS03-32 with
    REM V1.0 of ASP.NET on Windows XP only
    REM If you have any other configuration, you should not need to run
    this
    @echo off

    if exist %SystemRoot%\microsoft.net\framework\v1.1.4322\mscorlib.dll
    goto v11_installed

    REM "Changing to the Framework install directory"
    cd /d %SystemRoot%\microsoft.net\framework\v1.0.3705

    echo "Stopping IIS"
    iisreset /stop
    echo "----------------------"

    echo "Stopping the ASP.NET state service if it is running"
    net stop aspnet_state
    echo "----------------------"

    echo "Deleting the ASPNET account"
    net user ASPNET /delete
    echo "----------------------"

    echo "Creating a new ASPNET account with a temporary password"
    net user ASPNET 1pass@word /add
    echo "----------------------"

    echo "Launching runas to create a profile"
    echo "You will see a command window being created"
    echo "type 1pass@word when prompted for the temporary password"
    runas /profile /user:ASPNET cmd.exe
    echo "----------------------"

    echo "Re-registering ASP.NET and the ASPNET account"
    aspnet_regiis -i
    echo "A new random password has been autocreated for the ASPNET
    account"
    echo "----------------------"

    echo "Restarting IIS"
    iisreset /start
    echo "----------------------"

    echo "The workaround has been applied"
    echo "Please try accessing an ASP.NET page"
    echo "If you have any custom access controls settings for the ASPNET
    account,"
    echo "you will need to recreate them"
    echo "If you were running the ASP.NET state service, you'll need to
    restart it"
    goto done

    :v11_installed
    echo "Version 1.1 appears to be installed, you should not need to run
    this file"

    :done
    Anonieko, Apr 24, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Achim Domma (Procoders)

    read input for cmd.Cmd from file

    Achim Domma (Procoders), Jun 3, 2005, in forum: Python
    Replies:
    2
    Views:
    8,041
    Peter Otten
    Jun 3, 2005
  2. Sarir Khamsi

    Interpreter-like help in cmd.Cmd

    Sarir Khamsi, Jun 9, 2005, in forum: Python
    Replies:
    4
    Views:
    356
    Bengt Richter
    Jun 26, 2005
  3. =?ISO-8859-1?Q?Sch=FCle_Daniel?=

    [exec cmd for cmd in cmds]

    =?ISO-8859-1?Q?Sch=FCle_Daniel?=, Mar 8, 2006, in forum: Python
    Replies:
    3
    Views:
    371
    Scott David Daniels
    Mar 8, 2006
  4. Diez B. Roggisch

    pydb remote debugging/cmd.Cmd over socket?

    Diez B. Roggisch, May 28, 2008, in forum: Python
    Replies:
    2
    Views:
    540
    Diez B. Roggisch
    May 29, 2008
  5. Jerry Bryant [MSFT]

    Microsoft Security Bulletin MS03-039 -

    Jerry Bryant [MSFT], Sep 10, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    129
    Jerry Bryant [MSFT]
    Sep 10, 2003
Loading...

Share This Page