Enable PING on Windows 2008 server: -


I am writing this article as I was unable to ping a Windows 2008 server and I wanted to add it in a monitoring system.
The monitoring system I was using a third party system which try to contact server at some specific ports, telnet and ping etc. to check connectivity.
By default Windows server 2008 comes with a firewall enabled on it which is not the case with Windows 2003 :)
There are hundreds of advanced features available in Windows 2008 firewall.
Well come to the point. To enable ping on a Windows 2008 server following are the steps :-

Login your Windows 2008 server in RDP >>
A pop up windows shown below will be appeared >>

image11

Click on “Configure Windows Firewall” present under “Customize This Server” section >>

a new pop up window will appear >>

image2

here click on “Advanced Settings” >>

a new pop up window for FireWall management will appear >>

image3

Scroll to middle and locate “File and Printer Sharing(Echo Request - ICMPv4-In)” >>

right click on “File and Printer Sharing(Echo Request - ICMPv4-In)” and selct “Enable Rule”.

Thats its :)

Now you should be able to ping your server remotely.

Repair and Fix Windows Services: -

Some times you want to start a stopped service on your server but it fail throwing warning message something like “could not start”, “dependency failed”… etc.

This may happen when your server is infected, compromised or hacked.

Windows services can be fixed easily in a quick way with the help of a batch script. This script checks for all Windows services, its dependencies and repair if found anything wrong with them.

FIX :

You have to create a .bat file say WMI.bat

Edit this file and copy following script in it.

@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak

net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

Execute this WMI.bat file on command prompt and it will start listing the name of Windows services and their repair status.

Reboot the server once script is competed.

Hope this helps you to fix your Windows Server broken services