Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Ветеран


Сообщения: 27449
Благодарности: 8088

Профиль | Отправить PM | Цитировать


Raf-9600, информация всё одно несколько противоречивая.

Вот по предыдущей ссылке Vadikan'а:
Цитата:
The rootSecurityCenter2 namespace is available on Windows Vista SP1 and above. Windows Security Center is not available on server operatingsystems, meaning that the rootSecurityCenter2 namespace also isn`t available. In Windows XP SP2 the namespace is called rootSecurityCenter, but the properties are not the same as in rootSecurityCenter2. It`s possible to get the function work on Windows XP, but you would need to customize it to match the properties available in the rootSecurityCenter namespace.
Вот по Вашей:
Цитата:
…only are supported in Windows Desktops editions (Windows XP, Windows Vista and Windows 7).

Windows XP

Namespace : SecurityCenter
Classes availables: AntiVirusProduct, FirewallProduct

Windows Vista and Windows 7

Namespace : SecurityCenter2
Classes availables : AntiVirusProduct, AntiSpywareProduct, FirewallProduct
Вот из галереи Сценарий Get the status of Antivirus Product on local and Remote Computers.:
Цитата:
…only work on Windows XP SP2, Vista and 7 operating systems as Windows 2000 and Server 2003/2008/2008R2 does not have the required WMI SecurityCenter\SecurityCenter name spaces.

WMI query to get anti-virus information has been changed. Pre-Vista clients used the root/SecurityCenter namespace, while Post-Vista clients use the root/SecurityCenter2 namespace. But not only the namespace has been changed, The properties too.
Скрытый текст
В галерее есть и ещё один, попроще: Сценарий Get The Name of Installed Antivirus using Powershell.


В общем, мой вывод таков: в отличие от того, что приведено в примерах — надо смотреть не версии ОС и SP, а тупо проверять наличие того и другого пространства в пространстве «root» и работать с тем, какое будет.

Отправлено: 18:01, 04-12-2014 | #8