Chris Zog
Chris Zog

Reputation: 13

Create CMD Batch file for WMIC

I want to write this line from CMD so I can execute it in a batch file on a remote computer on a network that I can't remote into.

/>wmic

/>/output:C:\InstallList.txt product get name,version

Upvotes: 0

Views: 1622

Answers (1)

Stephan
Stephan

Reputation: 56155

you don't have to use wmic interactively:

wmic /output:C:\InstallList.txt product get name,version

or simply:

wmic product get name,version >C:\InstallList.txt

Upvotes: 1

Related Questions