Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

Bat file to set IIS 7.5 permissions

$
0
0

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


Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>