The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • about.me

    about.me/mikaelnystrom

  • Archives

  • Meta

Archive for the ‘Firmware’ Category

Working in the Datacenter – Get the Serial number on the SSD drives from Seagate and check for firmware upgrades using PowerShell

Posted by Mikael Nystrom on March 9, 2016

So, I’m currently working with a customer (you know who you are) implementing Storage Spaces and one of the things i do before we put everything in production is to check if there is new firmware for the disks (both SSDs and HDDs) and that is easy using PowerShell, you just run Get-Physicaldisk

image
But the serial number that I got was not correct according to the Seagate webpage, hmm, well it turns out that the “real” serial number on Seagate drives are just the first 8 characters. So with a simple filter the problem is solved.

$disks = Get-PhysicalDisk
$SSDs = $disks | Where-Object -Property MediaType -EQ -Value SSD

foreach($disk in $SSDs){
    $SerialNumber = $($disk.SerialNumber).substring(0,8)
    $Model = $disk.Model
    Write-Host "$SerialNumber,$Model"
}

image
With this I can now copy and paste that directly in the firmware search page, like this:

image
Here is the link for checking Seagate Firmware btw: https://apps1.seagate.com/downloads/request.html

/mike

Posted in Firmware, PowerShell | Tagged: , | Leave a Comment »

Step-by-Step: Upgrading BIOS during LiteTouch(ZeroTouch) Deployment, for Dell, Hewlett-Packard and Lenovo (v2)

Posted by Mikael Nystrom on December 16, 2013

Long time ago I wrote a post on how to upgrade the BIOS/Firmware during the deployment of a PC in the beginning of a TaskSequence, since then I have been hammered with the question on how to do the same thing but later on, when Windows is running, that has been nagging me, (which obviously paid off for all of you that has been doing that). My friends, here it is, this time in PowerShell, but hey, I don’t do XP anymore.

The basics

The basic Idea is to have a PowerShell script run that will discover what bios version we have and IF we have an update run the update according the that model’s specific way of running a firmware upgrade. It is also possible to just use the PowerShell script as a framework for other similar task of course, or you could use it to kick off something like SSM(HP) to do the job. I did one change, besides using PowerShell and that is to copy down the files to the local drive before running the upgrade, just to be sure that a messy network does not break the upgrade. The script is tested with a couple of HP’s, a Dell and a Lenovo, so there is of course no way I can guarantee it will work with every piece of PC around the globe, but hey, its PowerShell so you can modify it on your own :-). I also created it as an application for MDT LiteTouch, so you need to modify it slightly to run it in SCCM and it also needs the “AliasUserExit.vbs” script since I’m using ModelAlias and MakeAlias. If you don’t like that, just change the lines in he PowerShell code to use Make and Model or anything else that you can read from WMI using PowerShell

The PowerShell script (section One)

This part is just about creating log files, and getting basic data from the TaskSequence/TSEnviroment

image

The PowerShell script (section Two)

Here you can see the function that gets the SMBIOSBIOSVersion, and for all these vendors it is the same, but that could change in the future, so I decided to use the PowerShell Switch to figure out on how to get it. If you look close you can also see that I’m feeding back data to the TSEnviroment, that is not needed for this to work, but hey, you cannot get enough variables to play with, can you :-)

image

The PowerShell script (section three)

Here is when we get serious, you need to add every model that should be upgraded as a Switch Value and then update the $ExpectedBIOSVersion so it match what you should have. Then you need to add the BIOS update files in to the folder structure in the the Application and last you need to create/modify the UpgradeBIOS.cmd for each model so it runs whatever it is suppose to run to make magic happen.

image

The Folder Structure

Here you can see the folder structure, in this case HP Elitebook 8460p also has sub folders, whatever the vendors has a structure I put in the folder and that will then end up on the local drive, where I run the batch file.

image

The Application in MDT

Just a standard “app” in MDT, I don’t use the “Run PowerShell” script since Applications are easier to modify, move, export, import, and play with. But there should no very little work to get it to work as a script instead, basically the only thing you need to to is to store the script in a folder that the TS can reach, all the folder structure and the file copy is based on where the script is located.

image

CustomSettings.ini needs to be updated!

To figure out if a reboot is needed or not I added a reboot step and reads the property RebootNedeed, so you need to add that to customsettings.ini

image

The TaskSequence

As you can see, I did create a folder for this, easy to copy, easy to move, easy to enable/disable. The restart computer step does have a condition, it only executes if RebootNeeded is set to YES, which is set IF you run the BiosUpgrade.CMD batch file, in the PowerShell script I do return 3010 and I also set the RebootNeeded to YES.

image

The Restart computer Condition

image

 

How to?

  • Download the script
  • Unpack
  • Create a new Application in MDT (If you use SCCM or don’t like Apps, modify the script inside the folder first and add it as a script in the TS)
    • CommandLine: powershell.exe -ExecutionPolicy Unrestricted -File ViaMonstraUpgradeBios.ps1
  • Modify the script to fit your computers, versions and download each upgrade into each folder in the folder structure
  • Add it as an application
  • Enjoy

The Download

http://sdrv.ms/1ffLbji

/mike

The “old” Post: https://deploymentbunny.com/2011/05/20/step-by-step-upgrading-bios-during-litetouch-deployment-for-dell-hewlett-packard-and-lenovo/

The link to the AliasUserExit Script: https://deploymentbunny.com/2013/03/06/back-to-basiccustomsettings-inisample-2/

Posted in BIOS, Deployment, Firmware, MDT, SCCM | Tagged: | 3 Comments »

Nice to Know–Installing Windows Server 2012 R2 now works on HP Proliant Microserver

Posted by Mikael Nystrom on November 27, 2013

Finally the firmware upgrade is available, there is a lot of “Microservers” out there that really need to run Windows Server 2012 R2, but that has more or less been a very bad experience so far. The issue is simple, the built in NIC does not work, in fact it freeze the installation so badly that the only way to get the OS installed is to disable the NIC in BIOS and then find another and put it in one of the two slots available.

Anyhow, here is the firmware upgrade you need to be able to run WS2012 R2 on a Microserver AND use the built in network…:-)

http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdHome/?javax.portlet.prp_bd9b6997fbc7fc515f4cf4626f5c8d01=wsrp-navigationalState%3DswEnvOID%253D4168%257CswLang%253D%257Caction%253DlistDriver&javax.portlet.tpst=bd9b6997fbc7fc515f4cf4626f5c8d01&sp4ts.oid=4310887&ac.admitted=1385535738277.876444892.492883150

/mike

Posted in Firmware | Tagged: | 5 Comments »