Display a SecurityCenter status overview
Posted 02 January 2012 - 07:52 PM
Is there something like it for windows 7?
Posted 02 January 2012 - 09:23 PM
But looks like it should be do-able!
Posted 02 January 2012 - 10:27 PM
VER | FIND "6.1" > NUL || GOTO Syntax
The same registry value on my computer for Windows Updates does exist, but I never really looked through the full code in detail. Quite interesting though.
Posted 02 January 2012 - 11:22 PM
::VER | FIND "XP" >NUL || GOTO Syntaxdose the same thing....
i think what we need is the /namespace in this line:
FOR /F "tokens=*" %%A IN ('WMIC.EXE /Node:"%Computer%" /Namespace:rootSecurityCenter2 Path AntiVirusProduct Get companyName^,displayName^,onAccessScanningEnabled^,productUptoDate^,versionNumber /Format:List ^| FIND "="') DO SET %%A
when it comes to WMIC.exe I'm baffled
i cannot find the rootSecurityCenter2 with wmiexplorer as-well
Posted 03 January 2012 - 06:56 PM
I agree that I am also "baffled" by all of this (more like overwhelmed) when I started poking around in WMI...But at least you can start to "poke around in it, and maybe create a useful script.
Posted 03 January 2012 - 09:31 PM
Posted 03 January 2012 - 10:19 PM
It doesn't seem to exist on my computer running Windows 7. There are absolutely 0 classes that exist within it becuase the namespace is non-existant for me. Same thing with the root class SecurityCenter
Posted 03 January 2012 - 10:29 PM
I came up with this:
WMIC.EXE /Node:"%userdomain%" /Namespace:rootSecurityCenter2 Path AntiVirusProduct Get displayName^ /Format:Listit seems to do the trick
edit:change AntiVirusProduct with FirewallProduct or AntispywareProduct(if installed)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users