Auto Admin Logon on servers that are domain members

If you want to enable AutoAdminLogon on a Windows 2008 server it’s quite easy, just type “control userpasswords2” in the run as textbox and hit enter. Then a dialog appears that shows a checkbox, which is usually checked, saying that users must enter username and password. If you uncheck this checkbox you will be asked for the password of the current user. Windows stores the password and enables auto logon in the registry. Voila.

This does not work on domain member machines unfortunately. On a server that is part of a domain the checkbox is disabled. To enable the checkbox you have to do this:

In the run as textbox type the following command:

reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d “1” /f

This adds a key to the registry and re-enables the checkbox.

You may have to add the name of the domain as well, because by default Windows would use the local user account. In this case run the following command:

reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultDomainName /t REG_SZ /d “domain” /f

Replace domain by your actual domain name.

DSMI installation and IIS Management Scripts

While installing DSMI on a Windows 2008 server machine you might get a warning, saying that the installation cannot continue because the IIS Management Console and/or the IIS Management Scripts and Tools roles services are not installed.


Unfortunately the installation is interrupted in this case at its right beginning, since the installation depends on those services on several steps while the installation process, and can’t continue.

IIS service roles in Windows 2008 Server

You can easily add those role services if you open the server manager, expand the Roles branch and click on the Web Server (IIS). In the right pane click on Add role services in the actions pane. In the Add Role Services wizard select IIS Management Console and IIS Management Scripts and Tools and click install.


BTW, we do not need the IIS 6 support. DSMI is fully compatible to IIS 7.

MSI execution in elevated mode

If you still receive the same warning, although you installed those role services, then please check if the installation is running in elevated mode. If not, please do this:

1.) Open a command prompt as administrator

2.) Type msiexec /i <dsmi installation file.msi>  (where <dsmi installation file.msi> is pointing to your installation file)

This enables the installation to access system properties like application pool settings and web sites in IIS.

Have fun!

Adding a windows task to an event

Windows Vista, 7 and Windows 2008 Server now support to add a windows task to a specific event.

Let’s say you want to be notified by email everytime the ASP.NET unhandled exception event (id 1309) occurs:

Open the event viewer and the event from the list. Click on “Attach a Task to this log…” from the actions menu. This opens the simple task wizard bound to the event ID. Then simply choose send email and provide the usual information like recipient, from address and smtp server.

Then you’ll get an email every time to the event is thrown.

Enabling ftp services through firewall on Windows 2008

To enable ftp services on a Windows 2008 Server it’s unfortunately not enough to add an exception of the FTP Server in the white list of the built-in firewall in Windows.

Although, Windows has an exception list template for the FTP Server, it doesn’t work and your client will not connect to the FTP Server.

The reason I heard and what makes sense to me is, that the template is pointing already to the new FTP Server which is shipped in Windows 7 and is part of the new IIS7, but not in Windows 2008.

I added a new exception to the program c:\windows\system32\inetsrv\inetinfo.exe which is actually the IIS6 FTP server and now ftp services are working through the firewall again. 

Running web application pools in 32 Bit mode on Windows 2008 64

Sometimes I have to call 32 Bit COM component from a .NET web application installed on a 64 Bit Windows.

Although it’s quite tricky to accomplish the same on a Windows 2003 (IIS6) machine, it’s much more easy on a Windows 2008 server:

1.) Open IIS Manager
2.) Open Application Pools
3.) Right click on the application pool your application is running in and choose Advanced Settings from the menu
4.) Set Enable 32-Bit Applications to true


Web Installation interrupted on Windows 2008

Today I had a problem with an installer that just threw an error, saying the installation was interrupted and I should restart the installation later.

I tried to collect some sticks and stones I stumbeld over in the last days with the Crossmedia installer on a Windows 2008 Server:

1.) Check if you have ASP.NET installed
2.) Check if IIS 6 Compatibility features are installed
3.) Check if at least one website is available

If you still receive the …interrupted error dialog, you might want to activate windows installer logging in the registry (Aaron Stebner’s Weblog for details)

Open the registry and go to, or create if not available:  HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer
Add a new Value called Debug (REG_DEWORD) and set the value to 7.
Add another value called Logging (REG_SZ) and set the value to voicewarmup!

After these changes the registry a log file will always be written to the User’s temp folder. (Don’t forget to the delete registry keys, when you finished debugging)