How to patch MS03-32 via cmd script

A

Anonieko

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top