Hi I have some windows 8.1 machines to reinstall. After installing windows I am looking for a quick and convenient way to activate them with the BIOS embedded product key. I have found sometimes rw everything doesn't always work, it locks up or comes up with a memory error. I seen this command powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey" I tried it on a machine and it did bring up the product key. I then typed slui 3 and then typed the serial into the window and activated it. I wondered if anyone had or used a batch file to do this? Ideally I would like the batch file to read the key and insert it into the windows edition, but even if I was able to display the key in a command prompt and bring up the activation window so I could type it myself. Lastly does the powershell command above work on any widnows 8 machine, or has anyone come across branded machines where it doesn't display the key?