Create CMD Batch file for WMIC -


i want write line cmd can execute in batch file on remote computer on network can't remote into.

/>wmic

/>/output:c:\installlist.txt product name,version

you don't have use wmic interactively:

wmic /output:c:\installlist.txt product name,version 

or simply:

wmic product name,version >c:\installlist.txt 

Comments