WMIC Node Information

1

1

Is there a way that you can get WMIC to prompt you for a node name each time? I will be running a similar command for different machines on different occasions.

I.e. to get a remote computer model.

I would like to run the WMIC as a BAT file which then prompts for a node name?

wmic /node:"PROMPT computersystem list brief /format:list

Thanks,
Shane

user281084

Posted 2013-12-11T16:57:24.030

Reputation: 11

Question was closed 2014-01-12T23:34:28.780

From Set /?: "The /P switch allows you to set the value of a variable to a line of input entered by the user. Displays the specified promptString before reading the line of input." – Ƭᴇcʜιᴇ007 – 2013-12-11T17:08:15.993

Answers

0

This will do what you are asking.

set /p N= Type Node Name
wmic /node:"%N% computersystem list brief /format:list

Knuckle-Dragger

Posted 2013-12-11T16:57:24.030

Reputation: 1 817