On Nov 24, 1:01*pm, Personne <cpdiv...@xxxxxx> wrote:
> $p="."
> $with_label = @{Expression={$_.SerialNumber};Label="SN1"}
> $with_name = @{Expression={$_.SerialNumber};Name="SN2"}
>
> gwmi win32_SystemEnclosure -ComputerName $p | ft $with_label
> gwmi win32_SystemEnclosure -ComputerName $p | select $with_name
>
> Works Perfect
> Thank you You must be working with Dell computers,
for HP and IBM's you have to look in Win32_BIOS for the SerialNumber
or Win32_ComputerSystemProduct for the IdentifyingNumber
1# gwmi Win32_ComputerSystemProduct
IdentifyingNumber : MXL60207Q5
Name : HP Compaq dc7600 Small Form Factor
Vendor : Hewlett-Packard
Version :
Caption : Computer System Product
2# gwmi Win32_BIOS
SMBIOSBIOSVersion : 786D1 v01.03
Manufacturer : Hewlett-Packard
Name : Default System BIOS
SerialNumber : MXL60207Q5
Version : COMPAQ - 20050518
OldDog