Query.vbs Example


Query.Vbs /S:MyMachine /FROM:Win32_Process /P

lists the names of all available properties of a Win32_Process.

Query.Vbs /S:MyMachine /P:Name:10 /P:ProcessId:10 /SORT:A:2
/FROM:Win32_Process /where:"processid>100"
lists the names and process IDs of all jobs currently running on the computer MyMachine and sorts the result so the process IDs are listed in an ascending order.
Query.Vbs /S:MyMachine /P:* /SORT:A:2 /FROM:Win32_Process
/where:"processid>100"
lists all properties of all jobs currently running on the computer MyMachine and sorts the results so the second column is listed in an ascending order.