Пятница, 17.04.2026, 15:29
Приветствую Вас Гость | RSS
Главная | Каталог статей | Регистрация | Вход
Меню сайта
Категории раздела
Разное [2]
Linux [17]
Windows [4]
Поиск
Облако тегов
Rdesktop RDP Active Directory Free freeware mail server Manitou-mail mail client Linux cluster GlusterFS сеть Ubuntu file system LUKS шифрование crypt samba CIFS Anonymous windows E-mail Mercury/32 hMailServer Mail Postfix PostfixAdmin WBEM Pegasus WMI CIM acl subinacl Owner PostgreSQL DBMail VirtualBox OCFS2 DRBD Zimbra Zarafa email GroupOffice WebMail
Block title
[18.05.2011][Linux]
Инструменты работы с SQLite под Linux (1)
[18.04.2010][Разное]
MAIL DSN (Delivery Status Notification) (0)
[17.12.2010][Разное]
Полезности для PostgreSQL (0)
[21.04.2010][Linux]
Допиливаем самбу (0)
[16.08.2010][Linux]
Шифрованная файловая система на основе LUKS (0)
Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0
Форма входа
Block title
Продажа компьютеров и ноутбуков, прайс лист на комплектующие. периферия, мониторы, расходные материалы
Записки админа
Главная » Статьи » Linux

WMI calls from Linux
WMI calls from Linux

In fact the language that wmic client uses is like SQL because it's called WQL and a referance for it is here:

http://msdn.microsoft.com/en-us/libr...06(VS.85).aspx

Вариант 1

sudo aptitude install wmi-client (in Hardy only)

Example of usage is;

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select * from Win32_Service"

Lists all services, the first line it spits back is the fields whihc you can use this SQL like langauge on to filter so to see only the names of the services installed we'd do:

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select Name from Win32_Service"

Or Name and State:

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select Name,State from Win32_Service"

Or for jsut one service in this case the UPS service:

wmic -U DOMAIN/administrator%password //10.99.92.9 "Select Name,State from Win32_Service where name='UPS'"

Вариант 2

Pegasus (http://www.openpegasus.org/)

Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be portable and highly modular. It is coded in C++ so that it effectively translates the object concepts of the CIM objects into a programming model but still retains the speed and efficiency of a compiled language. Pegasus is designed to be inherently portable and builds and runs today on most versionsof UNIX(R), Linux, OpenVMS, and Microsoft Windows.


Категория: Linux | Добавил: Admin (22.10.2010)
Просмотров: 3819 | Теги: WMI, Linux, Pegasus, WBEM, CIM | Рейтинг: 0.0/0
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Сделать бесплатный сайт с uCozCopyright MyCorp © 2026