something is wrong here ....please help
Looks like problem with quotes in ws.Exec command.
The following script should work for you:
==========================
Option Explicit
const statusUnknown = "scriptRes:Unknown:"
const statusOk = "scriptRes:Ok:"
const statusBad = "scriptRes:Bad:"
dim ws, a, Str
Set ws = CreateObject("WScript.Shell")
Set a = ws.Exec("cmd /c netsh advfirewall firewall show rule name=all |findstr ""Rule Name"" |find /C "":"" ").StdOut
While Not a.AtEndOfStream
Str = Str & Trim(a.ReadLine())
Wend
if Str="5" then
WScript.StdOut.Write statusOk & Str
else
WScript.StdOut.Write statusBad & Str
end if
==========================