Update: The original question was for Windows Server 2008, but the solution is easier for Windows Server 2008 R2 and Windows Server 2012 (and Windows 7 and 8). You can add the user through the NTFS UI by typing it in directly. The name is in the format of IIS APPPOOL\{app pool name}. For example: IIS APPPOOL\DefaultAppPool.
IIS APPPOOL\{app pool name}
Note: Per comments below, there are two things to be aware of:
- Enter the string directly into the "Select User or Group" and not in the search field.
- In a domain environment you need to set the Location to your local computer first.
Reference to Microsoft Docs article: Application Pool Identities > Securing Resources
Original response: (for Windows Server 2008) This is a great feature, but as you mentioned it's not fully implemented yet. You can add the app pool identity from the command prompt with something like icacls, then you can manage it from the GUI. For example, run something like this from the command prompt:
icacls c:\inetpub\wwwroot /grant "IIS APPPOOL\DefaultAppPool":(OI)(CI)(RX)
Then, in Windows Explorer, go to the wwwroot folder and edit the security permissions. You will see what looks like a group (the group icon) called DefaultAppPool. You can now edit the permissions.
However, you don't need to use this at all. It's a bonus that you can use if you want. You can use the old way of creating a custom user per app pool and assigning the custom user to disk. That has full UI support.
This SID injection method is nice because it allows you to use a single user but fully isolate each site from each other without having to create unique users for each app pool. Pretty impressive, and it will be even better with UI support.
Note: If you are unable to find the application pool user, check to see if the Windows service called Application Host Helper Service is running. It's the service that maps application pool users to Windows accounts.
I understand your frustration, as we deal heavily with Windows images on EC2, both as a consumer and as an EC2 solution/management tool provider.
The blank log retrieval is a huge annoyance, and seems to just happen every so often. I contacted Amazon about this, and the general response is that sometimes the log info is blank... Not much to go on with, so I am just letting you know of my own communications about this.
Reboots of Windows EC2 instances also make me nervous. After many failed reboots I can only recommend that you be at the ready to restore your image and database if need be. I spent many hours searching for information about reboot delays on EC2, and generally there are two findings:
- It can simply be really, really slow. Think hours, not minutes.
- I was once able to find a posting that seemed to hint that Windows instances with SSL certificates can be a problem after a reboot. Sounds weird, but again I am just passing on the information.
Good luck!
Best Answer
Creating a service: http://www.tacktech.com/display.cfm?ttid=197
Basically this should allow you to create a service, point it at the exe and then use services.msc to control it like a normal service. I.e. Automatic start and so on.
What command do you currently run to start solr?