



No. This script doesn’t do the updates for you, as awesome as that would be. I have a bunch of boxes that I have to do firmware updates on tonight. Apparently the Dell PERC4 has an issue on a certain firmware revision that will cause arrays of 5 or more disks in RAID 5 or 50 to fail during rebuild after replacing a failed disk (and I have a disk to replace). My array isn’t 5 disks but I’m playing it safe, as this is a production server. So, I thought “I don’t want to have to hit this from a file share tonight, or have to copy it tonight…” Go go lazy powers. I wanted to copy this to all of my DELL boxes, but not the VMs or HP machines. Enter, PowerShell.
.\get-servernames.ps1 <samname>
| foreach {
if ((get-wmiobject -computer $_ win32_computersystem).manufacturer -contains “*Dell*”) {
copy-item c:\SUU \\$_\c$\suu -recurse -force
}
}
More on get-servernames.ps1 later. But, now my SUU is on all of the servers and waiting for me tonight. I kicked it off and went home. And excuse the formatting, the layout is a work in progress!


More Options ...

Categories
Tag Cloud
Blog RSS
Comments RSS


Void
Life « Default
Earth
Wind
Water
Fire
Light 