Tuesday, October 19, 2010

NAnt with Windows 7

In order to use either NAnt 0.85-cr2 or 0.91-alpha2 on Windows 7, you need to download and install Microsoft .NET Framework 4, dotNetFx40_Full_setup.exe, from Microsoft at

Monday, October 18, 2010

IIS 7.0 Configuration Backup

The configurations of IIS on Windows 2008 server or Windows 7 can be backup/restored with appcmd.exe.

1. Backup

C:\Windows\system32\inetsrv\appcmd add backup my-backup

It will create C:\Windows\system32\inetsrv\backup\my-backup with following files:

2010-10-06 11:17 PM 18,258 administration.config
2010-10-18 02:50 PM 62,750 applicationHost.config
2010-10-06 11:16 PM 490 redirection.config
2010-10-18 10:44 PM <DIR> schema

Please note that if no backup name is given, a name with date and time is used for the backup object as show below:

C:\Windows\system32\inetsrv\appcmd add backup
BACKUP object "20101018T224909" added

2. Delete

C:\Windows\system32\inetsrv\appcmd delete backup my-backup

3. Restore

C:\Windows\system32\inetsrv\appcmd restore backup my-backup

4. List

C:\Windows\system32\inetsrv\appcmd list backup