≡ Menu

PowerShell: How to get BIOS details of remote computer

In today’s post, let us see how to get the BIOS details of remote computer. When I say BIOS details, the most important parameters one will look for is, version and serial number. These are the most two parameters System administrators often want to know. To get this information, I have written a little function which makes a WMI query to remote computer using Get-WMIObject cmdlet for Win32_BIOS class to get the required details.

Here you go for the script. Hope this helps…

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            

}

I will continue writing more and more when I find some time.

Comments on this entry are closed.

  • almoga July 23, 2013, 10:16 am

    Hi ,
    can you please to help me with this issue.
    The script does not work for me
    Maybe missing a parameter that relates to a specific computer?
    i copy paste to power-shell

    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

    }

    • Sitaram Pamarthi July 23, 2013, 11:05 am

      Could you please post a screenshot/error message? That helps me to understand the actual problem.

  • Almog July 24, 2013, 10:32 am

    Worked Thanks a lot!!
    Another issue
    Please , I would like to know how to do script that will give me size information files?
    in Linux for eample its : “df-lh”

    thankss and amazing day..

  • Almog July 24, 2013, 12:48 pm

    Where I put the computer name on script???
    Can you please demonstrate to me? name compuer for example – Rizer123

    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

    }

  • windows 8 serial key August 27, 2013, 8:03 am

    I every time used to study piece of writing in news papers but now as I am a
    user of net so from now I am using net for articles
    or reviews, thanks to web.

  • Zoran November 22, 2018, 9:30 pm

    Please help me. Your scrip/function does`n work for me. Please tell me where I must put computername in your script.

    Thanks for your answer

    • Wintel Rocks November 25, 2018, 9:29 pm

      Usage example : Get-BIOSDetails -Computer SERVER01