I have a bat file for IIS 5.1 to set the permissions.
I would like to create a bat file to set IIS 7.5 permissions correctly.
This is the beginning of my bat file:
@Echo Off
::Change ownership and permissions for IIS 7.5 Win7
::Set the ASP.NET version for the site to 2.0 within IIS
Set MachineName ="Docfxit"
Set UserName="IUSR"
cd "%SystemRoot%\Windows\Microsoft.NET\Framework\v4.0.30319"
:: Reinstall ASP.NET using
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
:: Granted permissions to the ASPNET account using
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -ga %MachineName%\ASPNET
:: grant read permissions to the GAC to the ASPNET account using
CACLS %WINDIR%\assembly /e /t /p %MachineName%\ASPNET:R
Is that correct so far? I figured out the correct user name should be IUSR.
Thank you,
Docfxit