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'"
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.