As a friend of mine asked me to explain him what an AppDomain was, I started answering his e-mail. I then thought “Let's not re-invent the wheel”, this must have been done before and in a better way than mine. Indeed: Application Domain FAQ
After I got rid of this annoying shutdown dialog, I have another tip for you. There's a shutdown button on the Windows 2003's login dialog, which is diabled all the time (at least on my machine). Google led me to Brad Wilson's Windows Server 2003 Tip of the Day:
Two of the most annoying things about being a developer using Windows 2003 in my mind are: (1) the shutdown dialog which forces you to fill out why you're shutting down, and (2) the lack of the shutdown button on the login dialog. Fortunately, remedying both is pretty simple.
- Start / Run / gpedit.msc
- Drill into Computer Configuration / Windows Settings / Security Settings / Local Policies / Security Options. Find the entry named "Shutdown: Allow system to be shut down without having to log on". Double click on it, change it to "Enabled".
- Drill into Computer Configuration / Administrative Templates / System. Find the entry named "Display Shutdown Event Tracker". Double click on it, change it to "Disabled".
Again, here's a screenshot:
If you're like me, every time you shut down or reboot Win2003 and are faced with the dialog asking why you're shutting down, you think “bloody hell, when I log back in I'm going to remove that dialog for good!”. While it's rebooting/shutting down, you grab a beverage, chat with your coworkers and possibly even play Halo if you're one of the eight people still employed by an “internet startup company”. By the time the OS is done shutting down/rebooting, the offending dialog box is a long-lost memory. ..Until you need to shut down again and the nightmare returns.
This is my reminder to you. Do it now. You deserve it!
The tip below is from one of my favorite email newsletters, Windows Tips & Tricks UPDATE:
How can I use Group Policy to disable the Windows Server 2003 Shutdown Event Tracker?
Like Windows 2000, Windows 2003 has an event tracker that prompts you to enter a reason for shutting down a server. To disable this feature, perform the following steps:
- Open the Microsoft Management Console (MMC) Group Policy Editor (GPE) snap-in or use Windows 2003 Group Policy Management Console (GPMC) to load the Group Policy Object (GPO) that you want to modify (e.g., the Default Domain Controllers policy).
- Navigate to Computer Configuration, Administrative Templates, System.
- Double-click Display Shutdown Event Tracker.
- Select Disabled, then click OK.
- Use the Gpupdate command to force the policy to refresh.
Update: I've made a screenshot where to find the setting:
(found in a t-break forum)