"now im trying to put the results in a variable ..."
BrowserUK gave you that here.
In reply to Re^5: Execute wmic command in cmd by marto in thread Execute wmic command in cmd by mvip