One task many webhosts face is that that sometimes Microsoft IIS websites on a shared hosting platform lose their folder permissions for the anonymous user.
In order to fix this, I have created a tool that will work with IIS7 and IIS8 that will go through all of your websites and reset the folder permissions on the root directory to ensure that the user account that IIS needs to access the web files has permissions to access the folder.
This is just an early release, but works with most set ups. Post any comments if you are looking for a few more features.
Current Version : 2.0.0
Works On: Windows 2008, Windows 2008 r2, Windows 2012, Windows 2012 r2 with IIS7+ or IIS8+
v2.0.0 (May 2016)
Added User check. It will check that NT user exists and will recreate if it does not.
Added User property corrections. It will ensure that the anonymous web user has the correct password, is enabled and password won't expire.
Added -g "GroupName" parameter. Using this parameter will allow you to ensure all anonymous web user accounts are added to the given group.
v1.0.0 (August 2014)
Just download the 7z archive and extract the contents on the server which has IIS installed. You can run from any folder if your choice. There are no installers necessary for this tool.
Start a command line prompt and run the IISPermissionFixer.exe file with the parameter -? to give you the options that are available. e.g.
Note: Running the tool with no options will automatically fix all sites in IIS on the machine.
Please note that this tool is unsupported. Although written with extreme care and attention, any misuse or damage caused by this tool is at your own risk. Any bugs can be reported to me and I'll fix them for you.
I may open source the tool at a later date for people to tweak and change as necessary.