There are a number of PSTools that I use to assist me in troubleshooting workstation and server issues. PSList is a command-line tool used to list details about the processes running on a Windows machine. PSLoggedOn is used to display the users currently logged onto a Windows machine, while PSInfo lists valuable system information such as uptime and processor and memory information. PSExec is used to remotely execute commands on a Windows computer. If you're like me and you use these tools with great frequency then I recommend you create a multi-tiered menu to execute them within Maven.
Here is a step-by-step list of instructions.
1) PSList is part of a suite of Microsoft Sysinternals support tools called PSTools that can be downloaded from here.
2) Extract the tools to a local folder on your machine, for example, C:\tools.
3) Open Maven.
4) Navigate to Main/All/Datagridview/SQL Queries/YOURQUERY/columns where YOURQUERY is the name of your main query.
5) Now on the Columns node, click the “Show” button to go to our Maven Menu.
6) Right-click on your Maven Menu and click the “Add Menu Item” menu.
7) In the Menu Text textbox type: PSTools
8) Press the Apply Button. This Menu item will serve as a parent menu.
9) Right-click on the newly created menu called PSTools and click the “Add Menu Item” menu.
10) In the Menu Text textbox type: PSList.
11) In the Command textbox type: %SYSTEMROOT%\system32\CMD.EXE.
12) In the Parameters textbox type: /k C:\tools\pslist.exe \\%computername%.
13) Press the Apply button.
14) Right-click on the PSList menu and select Copy.
15) Right-click on the PSTools parent menu and select Paste. This will create a new child menu item called "Copy of PSList".
16) Change the Menu Text to PsLoggedOn.
17) Leave the Command textbox as is.
18) In the Parameters textbox replace pslist.exe with psloggedon.exe so it looks like: /k C:\tools\psloggedon.exe \\%computername%.
19) Press the Apply button.
20) Again, right-click on the PSList menu and select Copy.
21) Right-click on the PSTools parent menu and select Paste. This will create a new child menu item called "Copy of PSList".
22) Change the Menu Text to PsInfo.
23) Leave the Command textbox as is.
24) In the Parameters textbox replace pslist.exe with psinfo.exe so it looks like: /k C:\tools\psinfo.exe \\%computername%.
25) Press the Apply button.
26) Again, right-click on the PSList menu and select Copy.
27) Right-click on the PSTools parent menu and select Paste. This will create a new child menu item called "Copy of PSList".
28) Change the Menu Text to PSExec.
29) Leave the Command textbox as is.
30) In the Parameters textbox replace pslist.exe with psexec.exe so it looks like: /k C:\tools\psexec.exe \\%computername% cmd.
31) Press the Apply button.
32) Press the OK button.
You now have a new menu item that has four child menus. Each menu will execute against the value of the
currently selected cell in main grid of Maven.


