i found this http://www.robvander.../secstat_xp.txt
Is there something like it for windows 7?
Display a SecurityCenter status overview
Started by
DarkPhoeniX
, Jan 02 2012 07:52 PM
7 replies to this topic
#1
Posted 02 January 2012 - 07:52 PM
#2
Posted 02 January 2012 - 09:23 PM
Interesting script...Looks like the basic tools are all here (i.e. WMIC and REG), you would just have to update it...I didn't know that all this stuff was in the WMI space, and using a tool like WMI Explorer (http://www.ks-soft.n...g/wmi/index.htm) you can search around. For example, the security settings are now inside "rootSecurityCenter2", but even making that small tweak didn't help much, and I gave up ...
But looks like it should be do-able!
But looks like it should be do-able!
#3
Posted 02 January 2012 - 10:27 PM
I'm sure I could go through this and have one similar working for Windows 7 but it would take some investigation. First step obviously as i'm sure you've both recognized is to change one of the first lines to this:
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.
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.
#4
Posted 02 January 2012 - 11:22 PM
I just changed :
i think what we need is the /namespace in this line:
when it comes to WMIC.exe I'm baffled
i cannot find the rootSecurityCenter2 with wmiexplorer as-well
::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
#5
Posted 03 January 2012 - 06:56 PM
Use the menu under Action to "connect" to a host or namespace. Then in the pop-up, use the little "book" next to the "namespace" to browse the namespace, and it starts a "root"...
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.
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.
#6
Posted 03 January 2012 - 09:31 PM
I actually have a WMI explorer created in Powershell that I use instead which looks exactly like that, and it may be the same just converted code. I'd have to take a look more into the WMI namespace used here.
#7
Posted 03 January 2012 - 10:19 PM
I think the problem here is that it's not finding this namespace: rootSecurityCenter2
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
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
#8
Posted 03 January 2012 - 10:29 PM
Thanks for the tip @sbaeder
I came up with this:
edit:change AntiVirusProduct with FirewallProduct or AntispywareProduct(if installed)
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