I'm creating a script to automatic update BIOS firmware for our Dell PC. We have multiple model here, so I need to check the model
C:\Users\me>wmic csproduct get name
Name
OptiPlex 3020
And also bios version
C:\Users\me>wmic bios get smbiosbiosversion
SMBIOSBIOSVersion
A09
Now I will put the bios updater somewhere on our network with filename format model_version.exe
.
How should I do to get the model and version in to 2 variables and in the end I just run
//path/to/the/updater/"%model%_%version%.exe" /s /r
to update the bios automatically, if the PC already on the latest bios version, just skip the script?
Thank a lot for your help.