1
I need to save the second line of a command in Windows CMD, when using WMIC, it returns the product key in the second line, showing any message in the first. I need to store this line in a variable, to apply in the SLMGR command.
Comando:<br>
wmic path softwareLicensingService get OA3xOriginalProductKey
Mensagem de retorno:<br>
Oa3xoriginalproductkey
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (precise of that line)
Someone knows how to do it??
He only catches the first line doing it. I only need the second line containing the key, because the slmgr recognizes only it, any other character will present error.
But in that case, how do I read only that second line, inside a bat?
– IGD753