r/PowerShell • u/Samuris • Feb 10 '26
Help with Dell BIOS updates
Do any of you fine folks have experience pushing out Dell BIOS updates remotely using powershell? I banged my head against my keyboard for a couple hours yesterday trying to get this to work.
All the other parts of my script worked just fine, but the invoke-command part doesn't seem to work.
Invoke-Command -ComputerName $PC -Scriptblock {Start-Process C:\Temp\BIOSupdate.exe -ArgumentList '/s /r /p="$password"'}
I can RDP to the system and run this exact command in powershell and it works, but doing it via PSSession or using Invoke-Command fails and I can't seem to get why. Anybody have any insight to what I'm doing wrong?
*Edited for formatting*
4
u/DeusExMaChino Feb 10 '26
Echoing the recommendation to use Dell Command Update. It's built to make this easy for you.
16
u/SysAdminDennyBob Feb 10 '26
If you install Dell Command Update you can then make use of that product's CLI(command line interface) to automate the install of the BIOS on that asset. You then no longer need to keep track of BIOS files per model. You can then send one command to all your various models and they would all go check if the need a new BIOS and then install it and reboot. You can also work with a BIOS that is passworded.
10
u/UserProv_Minotaur Feb 10 '26
Usually I leverage Dell Command Update:
1
u/Ambitious-Actuary-6 Feb 10 '26
Do you have other means? Sccm or intune? Shat about psadt? I would say you can use that mich better with built-in cmdlets
1
u/OlivTheFrog Feb 10 '26
What is the error message?
If your workstations' operating systems are as old as your domain controller, they might not be running Windows PowerShell 5.1.
WINRM might also be blocked by the Windows Firewall.
RDP is not WinRM. Sometime the WInRM service is disabled in the Master (WTF, but why ?)
1
u/CrimsonIzanami Feb 10 '26
You are missing the command to suspend bitlocker.
3
u/Jellovator Feb 10 '26
We use endpoint management software to do this, but you could also use Dell Command Update.
2
u/mikenizo808 Feb 10 '26
To use an existing variable in the
ScriptBlockyou need to add$Using:<variablename>, such as$Using:password.I do not use your technique of updating manually with each package. Instead, I attach the Dell DVD for Windows that contains
suu.exe(for doing CLI firmware upgrades). You can runsuu.exe /?or similar to see the help. There is also a GUI version included on the same ISO (suuLauncher.exeor something like that for GUI upgrades).The easy way might be to just use the iDRAC normal web interface and upload the package and install it. The
LifeCycle Controller(part of iDRAC) will create the job etc, and give you a choice about rebooting, etc.PS - I will have to check out that technique mentioned by others (Dell Command Update). I have not tried that one but looks cool.
PPSS - I also do a lot of remote
racadmand agree with others that say when doingStart-Processto use the-Waitparameter. Currently you are not using that, but just in case. Also see the help forStart-Processif interested in that, since it can log output to a text file which is sometimes helpful for commands that return nothing (but the terminal chatter would be interesting). I usually output to JSON where possible when usingracadmto get nice object outputs.2
u/teethingrooster Feb 11 '26
If you have bitlocker enabled you have to set it to suspend it. Also I think /l logs output, make a log and check it lol.
2
u/jsiii2010 Feb 11 '26
Windows update seems to take care of this.
1
u/purplemonkeymad Feb 10 '26
Good chance you need to wait for the process otherwise the session gets closed before the program is done:
1
u/OMSCFisherman Feb 15 '26
Appears to be syntax errors my friend. Do this,
Invoke-Command -ComputerName $PC -ScriptBlock {Start-Process C:\Temp\BIOSupdate.exe -ArgumentList "/s","/r","/p=$password" -Wait}That will get you where you need to be, and this is how I have been doing it as well.
1
u/krzydoug Feb 16 '26
This guy's done some decent work on automating dell command update
https://garytown.com/dell-command-update-install-manage-via-powershell