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 line. I need to store this line in a variable, to apply the SLMGR command.
Comando:<br>
wmic path softwareLicensingService get OA3xOriginalProductKey
Mensagem de retorno:<br>
OA3xOriginalProductKey
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (Accurate of this line)
Does anyone know how to do this ??
It takes only the first line doing this. I need only the second line containing the key, because slmgr only recognizes it, any other character will display an error.