PowerShell: BIOS-i info

From ICO wiki
Revision as of 16:35, 30 May 2012 by Mlepla (talk | contribs) (Created page with ' Näitab kasutajale tema arvuti BIOS-i infot. function Get-BIOSDetails { param($Computer) $output = "" | select ComputerName, BIOSVersion, SerialNumber $obj = Get…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Näitab kasutajale tema arvuti BIOS-i infot.


function Get-BIOSDetails { param($Computer)

$output = "" | select ComputerName, BIOSVersion, SerialNumber $obj = Get-WMIObject -Class Win32_BIOS -ComputerName $Computer $output.ComputerName = $Computer.ToUpper() $output.BIOSVersion = $obj.SMBIOSBIOSVersion $output.SerialNumber = $obj.SerialNumber

$output

}