
I need a batch script that will show me the hostname associated with the IP address (in the output) along with the software packages, when the script is executed.

In order to get the hostname of the same system, I am using Output: 172.22.73.15,Compatibility Pack for the 2007 Office system In order to fetch the list of software packages installed in the remote Windows system, I am using the following command: 'wmic /node:"!node!" computersystem get name /format:csv ^| find /i "!node!"'įor /f "tokens=1-2 delims=," %%y in ("%%x") do (įor /f "skip=2 delims=" %%x in ('wmic /node:"!node!" product get name /format:csv ^| find /i "!node!"' Setlocal enableextensions enabledelayedexpansion Wmic /node:172.22.73.15 computersystem get name /format:csv

Wmic /node:172.22.73.15 product get name /format:csv
