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.
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
}
Could you please post a screenshot/error message? That helps me to understand the actual problem.
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..
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
}
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.
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
Usage example : Get-BIOSDetails -Computer SERVER01