BIOS/UEFI-Version
Aus Wiki-WebPerfect
<# .SYNOPSIS This is a simple Powershell function to check your BIOS/UEFI Version. .DESCRIPTION This is a simple Powershell function to check your BIOS/UEFI Version. .NOTES Author: Robin Hermann .LINK http://wiki.webperfect.ch .EXAMPLE Get-BIOSVersion Get BIOS/UEFI Version of the localhost .EXAMPLE Get-BIOSVersion -ComputerName Get BIOS/UEFI Version of a remote Computer .EXAMPLE Get-BIOSVersion -AllHyperVNodes:$true Get BIOS/UEFI Version of all your Hyper-V Nodes in VMM #> Function Get-BIOSVersion { [CmdletBinding()] param( [Parameter(Position=0,mandatory=$false)][string] $ComputerName = "localhost", [Parameter(Position=0,mandatory=$false)][bool] $AllHyperVNodes ) process{ $BIOSReport = @() If ($AllHyperVNodes -eq $true) { $HyperVNodes = (Get-SCVMHost).ComputerName | Sort } Else { $HyperVNodes = $ComputerName } Foreach ($HyperVNode in $HyperVNodes) { $BIOS = gwmi win32_bios -ComputerName $HyperVNode $obj = New-Object -TypeName psobject $obj | Add-Member -MemberType NoteProperty -Name "ComputerName" -Value $BIOS.PSComputerName $obj | Add-Member -MemberType NoteProperty -Name "Manufacturer" -Value $BIOS.Manufacturer $obj | Add-Member -MemberType NoteProperty -Name "Name" -Value $BIOS.Name $obj | Add-Member -MemberType NoteProperty -Name "BIOS/UEFI Version" -Value $BIOS.SMBIOSBIOSVersion $obj | Add-Member -MemberType NoteProperty -Name "SerialNumber" -Value $BIOS.SerialNumber $obj | Add-Member -MemberType NoteProperty -Name "Version" -Value $BIOS.Version $BIOSReport += $obj } $BIOSReport #| Sort-Object ComputerName | ft } }