Sunday, January 11, 2009

Delete unused COM ports

1. Click Start -> Run -> type cmd
2. Type set devmgr_show_nonpresent_devices=1 then press Enter
3. Type devmgmt.msc then press Enter
4. Click View -> Show hidden devices
This will display devices that are not connected to your computer.
You can right-click, then select Uninstall to remove them.

Credit: http://www.mp3car.com/vbulletin/software-software-development/110742-delete-unused-com-ports-say-inuse.html

Friday, January 9, 2009

Modify Windows Vista to obtain IP address automatically

To resolve this issue, disable the DHCP BROADCAST flag in Windows Vista. To do this, follow these steps:

1. Click Start, type regedit in the Start Search box, and then click regedit in the Programs list.
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID}
In this registry path, click the (GUID) subkey that corresponds to the network adapter that is connected to the network.
3. On the Edit menu, point to New, and then click DWORD (32-bit) Value.
4. In the New Value #1 box, type DhcpConnEnableBcastFlagToggle, and then press ENTER.
5. Right-click DhcpConnEnableBcastFlagToggle, and then click Modify.
6. In the Value data box, type 1, and then click OK.
7. If the DhcpConnForceBroadcastFlag is 1, double-click and modify it to 0.
8. Close Registry Editor.

By setting this registry key to 1, Windows Vista will first try to obtain an IP address by using the BROADCAST flag in DHCP Discover packets. If that fails, it will try to obtain an IP address without using the BROADCAST flag in DHCP Discover packets.

MORE INFORMATION
If you know the router or the non-Microsoft DHCP server does not support the DHCP BROADCAST flag, you can set the following registry entry as follows instead of using the DhcpConnEnableBcastFlagToggle registry key.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID}

Value name: DhcpConnForceBroadcastFlag
Value type: REG_DWORD
Value data: 0
Note A data value of 0 disables this registry entry. You can use this registry entry to prevent Windows Vista from using the DHCP BROADCAST flag. After you set this registry entry, Windows Vista never uses the DHCP BROADCAST flag.

Credit http://support.microsoft.com/kb/928233


How to get GUID value?
1. Click Start, type cmd, press Enter.
2. type ipconfig /all, then look for Physical Address of your adapter.
3. type getmac, then you'll get the Transport Name as GUID value.


But if the IP address is still unable to be obtained, the only way to do is to fix IP address, Gateway, and DNS address in Windows Vista.