![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Getting Serial Number of Computer Hi, I apologize for being a pest, but is it possible, ideally through powershell, or through VBS, to get the serial number of a computer? I need to get it as a variable then write it to a file. Is this possible to do in powershell? |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Getting Serial Number of Computer As in the serial number for the hardware? Or are you talking about the Windows license code? I have used the "get-wmiobject win32_bios" to get the serial number for the hardware on my Dell boxes. I'm not sure if that is what you are looking for or not. "greatbarrier86" wrote: > Hi, > > I apologize for being a pest, but is it possible, ideally through > powershell, or through VBS, to get the serial number of a computer? I need to > get it as a variable then write it to a file. Is this possible to do in > powershell? |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Getting Serial Number of Computer On Aug 14, 1:36 pm, greatbarrier86 <greatbarrie...@discussions.microsoft.com> wrote: > I apologize for being a pest, but is it possible, ideally through > powershell, or through VBS, to get the serial number of a computer? I need to > get it as a variable then write it to a file. Is this possible to do in > powershell? Oh, an easy one! ![]() 65# $baseboard = Get-WmiObject Win32_BaseBoard 66# $baseboard.SerialNumber ..7B530C1.CN1296169KB591. |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Getting Serial Number of Computer On Aug 14, 1:47 pm, Hal Rottenberg <halr9...@gmail.com> wrote: > 65# $baseboard = Get-WmiObject Win32_BaseBoard > 66# $baseboard.SerialNumber > .7B530C1.CN1296169KB591. And to a file: 69# $baseboard.SerialNumber | set-content sn.txt 70# get-content C:\tmp\sn.txt ..7B530C1.CN1296169KB591. |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Getting Serial Number of Computer On Aug 14, 1:46 pm, phyler <phy...@discussions.microsoft.com> wrote: > I have used the "get-wmiobject win32_bios" to get the serial number for the > hardware on my Dell boxes. Here's the difference in the two on my laptop: 71# gwmi win32_bios SMBIOSBIOSVersion : A08 Manufacturer : Dell Inc. Name : Phoenix ROM BIOS PLUS Version 1.10 A08 SerialNumber : 7B530C1 Version : DELL - 27d70403 72# gwmi win32_baseboard Manufacturer : Dell Inc. Model : Name : Base Board SerialNumber : .7B530C1.CN1296169KB591. SKU : Product : 0JK187 |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Getting Serial Number of Computer Damn! very nice. This is the computer's serial number correct? The HP assigned serial? "Hal Rottenberg" wrote: > On Aug 14, 1:47 pm, Hal Rottenberg <halr9...@gmail.com> wrote: > > 65# $baseboard = Get-WmiObject Win32_BaseBoard > > 66# $baseboard.SerialNumber > > .7B530C1.CN1296169KB591. > > And to a file: > > 69# $baseboard.SerialNumber | set-content sn.txt > 70# get-content C:\tmp\sn.txt > ..7B530C1.CN1296169KB591. > > |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Getting Serial Number of Computer Damn! very nice. This is the computer's serial number correct? The HP assigned serial? "Hal Rottenberg" wrote: > On Aug 14, 1:47 pm, Hal Rottenberg <halr9...@gmail.com> wrote: > > 65# $baseboard = Get-WmiObject Win32_BaseBoard > > 66# $baseboard.SerialNumber > > .7B530C1.CN1296169KB591. > > And to a file: > > 69# $baseboard.SerialNumber | set-content sn.txt > 70# get-content C:\tmp\sn.txt > ..7B530C1.CN1296169KB591. > > |
My System Specs![]() |
| | #8 (permalink) |
| | Re: Getting Serial Number of Computer On Aug 14, 2:24 pm, greatbarrier86 <greatbarrie...@discussions.microsoft.com> wrote: > Damn! very nice. This is the computer's serial number correct? The HP > assigned serial? This one is a Dell, but yeah. ![]() You should do some reading on WMI. There is a ton of good stuff in there, and it's incredibly easy to get at using Powershell. Here's more info on WMI classes that have hardware info: http://msdn2.microsoft.com/en-us/lib...d_port_classes And the WMI homepage on MSDN: http://msdn2.microsoft.com/en-us/library/aa394582.aspx Then of course in Powershell, # help get-wmiobject -detailed And a Script Center article: http://www.microsoft.com/technet/scr...mshandwmi.mspx |
My System Specs![]() |
| | #9 (permalink) |
| | Re: Getting Serial Number of Computer I got it and 3 other wmi ones that i have been needing...those queries are REALLY easy. "Hal Rottenberg" wrote: > On Aug 14, 2:24 pm, greatbarrier86 > <greatbarrie...@discussions.microsoft.com> wrote: > > Damn! very nice. This is the computer's serial number correct? The HP > > assigned serial? > > This one is a Dell, but yeah. ![]() > > You should do some reading on WMI. There is a ton of good stuff in > there, and it's incredibly easy to get at using Powershell. > > Here's more info on WMI classes that have hardware info: > > http://msdn2.microsoft.com/en-us/lib...d_port_classes > > And the WMI homepage on MSDN: > > http://msdn2.microsoft.com/en-us/library/aa394582.aspx > > Then of course in Powershell, > > # help get-wmiobject -detailed > > And a Script Center article: > > http://www.microsoft.com/technet/scr...mshandwmi.mspx > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Serial Number | Vista security | |||
| Volume serial number | PowerShell | |||
| serial number | Vista installation & setup | |||
| Installing without a Serial Number | Vista installation & setup | |||
| What should be used for the serial number? | Vista installation & setup | |||