I would like to get the serial numbers of a list of computers. I have created a powershell script as follows:
$computers = Get-Content c:\pstest\computerlist.txt
Get-wmiobject win32_bios | ForEach-Object {$_.serialnumber}
All I get is as follows:
PS C:\pstest> .\pstest01.ps1
R6Z00180
How do I do this ?