Category Archives: Windows Server 2008

Clear DNS Cache Manually

Applies to: Windows, Cisco

When you use DNS to resolve hostnames to IP addresses or services end point addresses, you sometime may want to clear the DNS cache manually.

On Windows you can clear the DNS cache with the “ ipconfig /flushdns ” command.

On Cisco gear you can use the “ clear hosts * ” in enable mode.

Command to Create a Dummy File

Applies to: Microsoft Windows

Dummy files can be very helpful in a Server environment. For example, having a 5 GB dummy file on the log and database partitions of an Exchange Server will help you resolve a space issue quickly. Simply delete the dummy file, and then you’d have some time to address the issue properly.

Use below Windows Commands to create dummy files in a size of your choice.

1 GB dummy file (1024*1024*1024=1073741824):

fsutil file createnew dummy.file 1073741824

5 GB dummy file (1024*1024*1024*5=5368709120):

fsutil file createnew dummy.file 5368709120

Enable or Disable PING Replies on Windows Server 2008

For the new operating systems, such as Windows Server 2008 or Vista, Microsoft features a different security concept than for the previous versions. Server 2008 and Vista are looked down by default. This means network services, such as PING replies, have to be enabled before they are available.

PING is usually being used for the inital troubleshooting of network-related issues. If a server is down, it’ll most likely not respond to a PING request.

On the other hand, not receiving a PING reply does not necessarily mean that there is a cabling or IP Addressing problem, simply because PING could be blocked either on the receiving end, on the sending side, or on various network devices between those two points. In any case, it’s still better to enable PING replies, than having it not.

Enable Ping Replies via local Command Prompt

netsh firewall set icmpsetting 8

Disable Ping Replies via local Command Prompt

netsh firewall set icmpsetting 8 disable

Note: PING replies can also be enabled/disabled by using the ”Windows Firewall with Advanced Security”, which is found under Administrative Tools.