2022年3月25日 星期五

Command Line to get Win 7 / Win 10 / Win 11 system related information

1. Open cmd Terminal

2. Windows version 
    # winver

3.  local computer system information 

    # systeminfo

    # systeminfo | @find "開機時間"

4. Remote computer system information (limitation: Windows PC)

    # systeminfo / s {Remote IP}

5. Get MAC address

    # getmac

6. Get Remote PC MAC address (limitation: Windows PC)

    #getmac /s {Remote IP}

7. 查詢主機板廠商、主機板型號。

    #wmic baseboard get product,Manufacturer

8. 查詢主機板廠商、主機板型號、序號、版本號。

    # wmic baseboard get product,Manufacturer,version,serialnumber

9. 顯示作業系統Windows 10 序號

    # wmic path softwarelicensingservice get OA3xOriginalProductKey

10. 

    # ipconfig | find /i "IPv4"

11. use regedit to get Win10 product key

    「HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform」

   to find BackupProductKeyDefault, it contains ProductKey


特別注意:

「BackupProductKeyDefault」內所含的金鑰序號是「第一次」寫入的序號,有非常大的機率是不含正版啟用功能,目的只是為了可以識別或是正常安裝。

例如各大廠商如 HP、Acer 等,在電腦產品出貨前必須先寫入一組 BackupProductKeyDefault 來順利安裝系統與識別產品,這組序號僅供版本識別使用,沒有任何意義,隨後再把正式的序號寫入主機板中(OA3xOriginalProductKey),所以我們才可以用 CMD 來查詢。

另外一種狀況是,當自己重灌電腦或升級時,輸入一組通用序號來讓流程順利進行,這組序號也會寫入 BackupProductKeyDefault 值中。



12.  Microsoft Store,search「ShowKeyPlus」and install it.

     It may update window if your system is too old to install ShowKeyPlus. 


13. Windows system file check, administrator cmd 

     # sfc / scannow



Refer to:

1. https://adersaytech.com/kb-article/how-to-check-windows-product-key.html

沒有留言:

張貼留言