Archive for the ‘Microsoft’ Category.

Export List of Website in II7

In IIS5/6, an easy way is to export the list under IIS manager.

However, in IIS7, things are easier using command line

%windir%\system32\inetsrv\appcmd list site > c:\website.xls

command is good, get things done faster 🙂


Changing of Hosts file to test website before real migration

Take note, you need to have administrative rights before you can edit the hosts file

Usually when you do website migration, you want to test the website in the new server before you point your live traffic over. There is a few methods is doing so but changing your host file will be the best option as it will allows you to do REAL testing

1) You need to run Notepad as a administrative rights

2) After which, go to “File” -> “Open” and key in “%systemroot%\system32\drivers\etc\hosts” (without quotes) under the “File Name”

3) You will need to add an entry like this at the end of the file.

You need to replace “x.x.x.x” with your new server IP address and “” with your real domain name that you are testing on

4) You will then need to close your browser, and flush the dns cache on your computer.

5) Now, try to ping your “” and you should see the new IP address

Hope this helps!

The terminal server has exceeded the maximum number of allowed connections

Encountered this problem with one of my customer’s server. A quick fix will be logging in remotely using console session to clear up the connections

mstsc /v: /admin

Replace ‘’ with your server IP.

After which, you can launch the Terminal Server Manager (Start -> Run -> tsadmin.exe) and clear up the sessions.

Hope this helps…

openOleDBConnection The ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine

I have just completed a migration for a friend of mine. As he is upgrading the server from Windows 2003 32bit to 64bit version, the site was hit with alot of errors not loading the right stuff for his .aspx files.

The following error was presented to me when trying to login to his administrative panel.

openOleDBConnection The ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine

Let me present you the solution:

You need to convert the ASP.NET installation to 32bit version.

After which, type “iisreset” in the cmd prompt to restart your IIS services.

One last step which was not shown on the web, you need to go to IIS ->Web Service Extensions -> Enable “ASP.NET v2.0.50727 (32-bit)”

One last time, type “iisreset” in the cmd prompt to restart your IIS services.

Now your site should be functioning properly now.


Windows 2008 Activation Issue

I was hit with this error.

Code: 0x8007232B
Description: DNS name does not exist.

Quick Solution:

slmgr.vbs -ipk [your product key]
slmgr.vbs -ato


Windows Firewall can not run because another program or service is running that might use the Network Address Translation component (IPNat.sys)

Encounter a problem that cause my windows box to be offline remotely 🙁

I had to spend quite a fair bit of my time to look into this.

If you attempt to start the Windows Firewall, you will notice that you will get this error message:

Windows Firewall can not run because another program or service is running that might use the Network Address Translation component (IPNat.sys)

This is because “Routing and Remote Access” is enabled.

You can disable by doing this:
Start -> Run -> cmd -> mmc
Add “Routing and Remote Access” under the Snap-In.

Disable the protocol for the “Routing and Remote Access” now. You will need to restart your server for it to take effect.

You should be able to start your Windows Firewall now and gain access to the server remotely 🙂

Hope this helps…

NTFS read/write in Linux

Accessing NTFS parition via Linux is pretty simple. Here is the steps to get it running in less than 10 mins 🙂

Let’s install some basic stuff.

yum install gcc gcc-c++ make kernel-devel

Setup Fuse

tar zxvf fuse-2.7.4.tar.gz
cd fuse-*
make install

Next, download NTFS-3G from here

tar zxvf ntfs-3g-2009.1.1.tgz
cd ntfs-3g-*
make install

Last but not least

modprobe fuse
mkdir /windows
 mount -t ntfs-3g /dev/sdb1 /windows

You can then read/write your windows partition from /windows 😉

Hope this helps … 🙂

Firefox Unable to Download

Following the Vista User Profile restore which I have recently performed, I realized that Firefox is unable to download files for me properly. Whenever I clicked on any download links from websites, the files could not be downloaded.

A quick fix for this would be:

1. Opening Firefox User Profile in the following location:

2. Locate prefs.js inside the User Profile folder. Open it using your favourite editor like Notepad++

3. Look for
user_pref(“”, “C:\\Users\\[Old Username]\\Desktop”);

4. You will now replace the [Old Username] with [Username] that you are using now for your Windows.

5. Finally, you may download as usual now!

Good luck!


System.Web.Extensions error

Parser Error Message: Could not load file or assembly ‘System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.

If you are getting this error, you might want to install the ASP.NET AJAX.

This happen to me when I was moving a site to another server without the AJAX installed, took me less than 15 minutes to figure out this silly mistake.

Disabling Windows Automatic Updates using registry

It seems that Windows Automatic Updates has killed one of my office computer. Since the environment is not using any AD, I will need to disable via registry. I try to google around but it does not seems to be able to find any solution so I spent some time to find.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]

The value for each purpose is stated here.
1 – Turn off Automatic Updates
2 – Notify me but don’t automatically down or install them
3 – Download updates for me, but let me choose when to install them
4 – Automatic

So i choose to turn off the Automatic updates and update myself manually in case it screw me up again and wasting my time to fix the broken updates 😀

Hope this helps someone out there 🙂