Понедельник, 15.06.2026, 18:56
Приветствую Вас Гость | RSS
Главная | Каталог статей | Регистрация | Вход
Меню сайта
Категории раздела
Разное [2]
Linux [17]
Windows [4]
Поиск
Облако тегов
RDP Rdesktop Active Directory Free freeware mail server Manitou-mail mail client Linux cluster GlusterFS сеть Ubuntu file system LUKS crypt шифрование samba CIFS Anonymous windows E-mail hMailServer Mercury/32 Mail Postfix PostfixAdmin WBEM WMI CIM Pegasus acl subinacl Owner PostgreSQL DBMail VirtualBox OCFS2 DRBD Zimbra Zarafa email GroupOffice WebMail
Block title
[28.03.2013][Linux]
Русский в консоли Ubuntu (0)
[09.11.2010][Windows]
Смена владельца файлов / папок в Windows 2003 (2)
[20.09.2010][Windows]
Обзор бесплатных почтовых серверов под Windows (0)
[25.05.2010][Windows]
Скрываем Windows-машину из сетевого окружения (0)
[08.12.2010][Linux]
Установка и настройка DBMail + PostgreSQL (1)
Статистика

Онлайн всего: 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)
Просмотров: 3828 | Теги: WMI, Linux, Pegasus, WBEM, CIM | Рейтинг: 0.0/0
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Сделать бесплатный сайт с uCozCopyright MyCorp © 2026