Hi All,
I use the script below to get serial number, but I have no idea how to get the computer name in the meantime.
Pls point me.
$File = [System.IO.File]::OpenText("d:\111.txt")
while($Machine = $GuyFile.ReadLine())
{Get-WmiObject -computername $Machine win32_SystemEnclosure }
$GuyFile.Close()