BIOS - Device name || It is required to update BIOS drive by using a script.

ParKum 0 Reputation points
2023-06-01T13:47:57.04+00:00

I'm trying to create an automate (ConnectWise) script to update "BIOS device name" on multiple devices.

For example: To update the Ethernet driver, its device name is - "Intel(R) Ethernet Connection (7) I219-LM" which is available in device manager.

The script is like:

Get-WmiObject Win32_PnPSignedDriver | 
    Where-Object {$_.devicename -eq 'Intel(R) Ethernet Connection (7) I219-LM'} |
    ForEach-Object {
        if ([Version]$_.Driverversion -ge [Version]'12.17.8.9') {  
            Write-Output "Version is Current"
            # return from a function ?
            # return 0
            # exit script with exitcode?
            # exit 0
        } 
        else {
            Start-Process -FilePath "\\servername\share\share\Dell\Drivers\Dell 3630\Network Card\setup.exe" -ArgumentList '/s' -Wait -NoNewWindow
        }
    }
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,776 Reputation points
    2023-06-02T12:38:23.4433333+00:00
    Hello ParKum,
    
    Thank you for your question and for reaching out with your question today.
    
    I have used the following Powershell Script in the past:
    
    param(
        [string] $deviceName
    )
    try{
        if($deviceName)
        {
            Write-Host "Changing device name to:"$deviceName
            Rename-Computer -NewName $deviceName
        }
        else
        {
            Write-Host "Please provide device name as argument"
        }
    }
    catch
    {
        Write-Host $_.Exception.Message 
    }
    
    If the reply was helpful, please don’t forget to upvote or accept as answer.
    
    Best regards.
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.