PsExec

How to find a Program Version on List of Computers Using wmic and psexec

Using wmic, you can easily get a list of most of the applications installed on a computer:

wmic Product get Name

How to find a Program Version on List of Computers Using wmic and psexec1

To list the name & version of a program that you know part of the name to, run the following:

wmic product where "Name like '%Java%'" get Name, Version

To list the name & version of a program that you know the full name of, run the following:

wmic product where "Name='Java 7 Update 60'" get Name, Version

How to find a Program Version on List of Computers Using wmic and psexec 2

 

 

Now that you know how to get a program name & version using the command line, now you just need to learn how to run the command on a group of computers. There are two ways to do this, both involving psexec, a utility from the sysinternals suite.

How to Set or Change IP Addresses, Gateways, Subnet Masks, and DNS Servers Remotely in Windows

If you are a systems administrator, there will probably be a time when you will need to change a users IP adddress, gateway, subnet mask, or DNS servers without actually logging into their computer. This method requires no end user interaction and is designed to work in a domain environment. We will be using two tools in this example: Netsh and PsExec (part of PsTools).

Download PsTools and extract it to C:\pstools on your system. Then open a command prompt and change to that directory:

cd C:\pstools

PsExec is a light-weight telnet replacement that lets you execute processes on remote systems. You can use IP addresses or hostnames with PsExec. To launch an interactive command prompt on a remote computer, run the following command (you should run theses commands as domain admin):

psexec.exe \\ip_or_hostname cmd

Subscribe to PsExec