取得 windows 的序號

Posted on Sun 09 September 2018 in note

買 notebook 通常會有隨機安裝的 windows,但是像我已經裝了 linux 如果重新安裝 windows 沒有序號怎麼辦?

只要一行指令

sudo cat /sys/firmware/acpi/tables/MSDM | tail -c 32 | xargs -0 echo

ref. Brandon Prry