By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

How to patch MS03-32 via cmd script

P: n/a
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\msc orlib.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

Apr 24 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.