Post Fri Jun 07, 2013 11:25 am

Getting This Computer's Asset Tag Number

CMD> wmic SystemEnclosure get SMBIOSAssetTag

Here's a function for it:

function Get-AssetTagAndSerialNumber {

param ( [string[]]$computerName = @('.') );

$computerName | % {

if ($_) {

Get-WmiObject -ComputerName $_ Win32_SystemEnclosure | Select-Object __Server, SerialNumber, SMBiosAssetTag

}

}

}