How can I return only the value field from a command in batch? For example:
ipconfig /all | findstr "Host Name"
Will return
Host Name . . . . . . . . . . . . : YOUR_HOSTNAME
But I only want the value. In this case, YOUR_HOSTNAME.
Also, if there are more than one line, it should get the first match from the top.