본문 바로가기
OS-OE Knowledge/Windows KB

How to find computer serial number

by 스쳐가는인연 2015. 3. 5.

How to find computer serial number 
http://support.microsoft.com/kb/558124

Instructions

Please use one the method bellow to retrieve the computer serial number:
 
 
1. Using the buid in "wmic" command:
 
"wmic bios get serialnumber"
 
Tip: You can use the command "wmic csproduct get name" to retrieve the local computer model.
 
 
2. Using a vbs script:
 
On Error Resume Next
Dim strComputer
strComputer = InputBox("Enter the name of the computer:")
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
MsgBox strComputer & ": " & objSMBIOS.SerialNumber
Next


구동중인 PC SN을 확인하려다 보니 난감하여~
역시 제공되고 있군아~~ 정품 PC 아니면 안나온다는게 함정!

반응형