Get the machine code

1. or get CPUID

C:\Users\chen>wmic CPU get ProcessorId
ProcessorId
BF9*********1324

2. have a hard disk or ID

C: \ the Users \ chen> the DiskPart 


in the Microsoft version of the DiskPart 10.0.18362.1 

Copyright (C) in the Microsoft Corporation. 
On the computer: DESKTOP - **** 

DISKPART> List Disk 

  Disk ### Status Size Gpt available Dyn 
  ------ - ------------- ----- ----- --- --- 
  disk 0 online 119 GB 0 B * 
  disk 1 online 931 GB 2048 KB * 

DISKPART> the SELECT disk 0 

disk 0 is now the selected disk. 

The DISKPART> Detail Disk 

**************** 
disk ID: {**********************} 
Type: SATA 
status: online 
path: 0 
goals: 0 
LUN ID: 0 
location path: ****************) 
current read-only status: No 
read-only: No 
startup disk: a  
page file disk : Yes
hibernation file disk : no
Crash dump disk: a 
cluster disk: No 

  volume label FS ### LTR size type status information 
  ---------- --- ----------- ----- ---------- ------- --------- -------- 
  paper recovery NTFS partition 450 MB normal 
  volume 5 C NTFS partition 118 GB normal startup 
  volume 6 FAT32 partition 100 MB normal system 

DISKPART>

  

  

Guess you like

Origin www.cnblogs.com/jycjy/p/11539673.html