PDA

View Full Version : Re: Getting status of Windows XP SP2 security center to command-line


Torgeir Bakken \(MVP\)
January 13th 05, 09:29 PM
Ralf Huelsmann wrote:

> We need to get the status of the windows xp security center (sp2) in a
> .cmd-batch.
>
> there are severral things we can get with netsh and registry commands, but
> thatīs not what we want...
>
> we need to have the full status (safe or unsafe), or (even better) the three
> stati for
> - firewall
> - automatic updates
> - antivirus
>
> anything from ideas, over link to interesting pages about that to wsh-script
> or even a ready piece of code as a com/exe or whatever would be great.
Hi

There is no publicly available documentation on the WMI interface
the Security Center supports, and I have not seen any source code
or script using it either.

But this post might interest you:

From: Ivan Brugiolo [MSFT] )
Subject: Re: Security Center detection of third-party firewall and AV
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2004-10-06 17:30:53 PST

<quote>
"Marius Mailat" > wrote:
>
> If I am interested in retrieving the same information like
> Security Center
>
> - if a firewall is installed
> - if the firewall is up to date
> - if a antivirus is installed
> - if the antivirus is up to date
>
> where should I look for documentation. Tahak you.

If you enable verbose logging for WinMgmt,
in %windir%\system32\wbem\logs\wbemcore.log you should
be able to see the kind of queries that are being executed.

</quote>


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Carey Frisch [MVP]
January 18th 05, 01:09 PM
If you enable verbose logging for WinMgmt
in %windir%\system32\wbem\logs\wbemcore.log,
you should be able to see the kind of queries that
are being executed.

Secrets of Windows Management Instrumentation
http://www.microsoft.com/technet/scriptcenter/resources/wmifaq.mspx

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect Your PC!
http://www.microsoft.com/athome/security/protect/default.aspx

----------------------------------------------------------------------------

"Ralf Huelsmann" wrote:

| Hi !
|
| We need to get the status of the windows xp security center (sp2) in a
| .cmd-batch.
|
| there are severral things we can get with netsh and registry commands, but
| thatīs not what we want...
|
| we need to have the full status (safe or unsafe), or (even better) the three
| stati for
| - firewall
| - automatic updates
| - antivirus
|
| anything from ideas, over link to interesting pages about that to wsh-script
| or even a ready piece of code as a com/exe or whatever would be great.
|
| thanx
|
| cu
| ralf

Google