Skip to main content

Forcing a firmware update on a Chromecast with Powershell

·236 words·2 mins
tech chromecast json powershell technology
James Pettigrove
Author
James Pettigrove
Cloud Engineer with a focus on Microsoft Azure

You probably took one look at the title and thought “what in the blue hell is this person on about?”. I mean, how often do you suspect Chromecasts and Powershell go hand in hand?

In any case, some bright spark with, I’m guessing, a combination of Wireshark and a curious mind managed to discover the Over-The-Air (OTA) URL that Chromecasts check-in with to discover if there is a pending update to their firmware available. With this information, we are able to craft a JSON web request utilising theĀ Invoke-WebRequest cmdlet in Powershell to force the Chromecast to get firmware updates. This can be very handy if you switch from or to the Beta firmware channel and are not the type to wait for Google’s idea of an update check to occur.

Firstly, get the current IP address of your Chromecast from the Google Home app or by checking DHCP logs in your home router. Next, drop into a Powershell session and enter the following:

Invoke-WebRequest -Method Post -ContentType "application/json" -Body '{"params": "ota foreground"}' -Uri "http://CHROMECAST_IP:8008/setup/reboot" -Verbose -UserAgent "curl"

Ensure you swap out CHROMECAST_IP for your own before sending the command off. Once run, your Chromecast should happily kick off the firmware upgrade process and you will receive a HTTP 200 response in the Powershell session.

Hat tip to AddictiveTips from where I discovered this one.

More proof that Powershell can help you achieve just about anything.

Related

Legacy BIOS and UEFI PXE coexistence
·701 words·4 mins
system-administration tech bios dhcp powershell pxe sccm sysadmin technology uefi windows-server-2012-r2
More and more enterprises are moving towards the modern UEFI devices in their fleet, whether that be desktops, laptops or convertibles.
How to restore a tree of objects from the Active Directory Recycle Bin
·710 words·4 mins
system-administration tech active-directory powershell sysadmin technology
In a previous post I detailed how to setup the Active Directory Recycle Bin and restore single deleted objects back in your Active Directory.
Export users of one AD group and import to another
·196 words·1 min
system-administration tech active-directory powershell sysadmin technology windows
It’s quite common for members of one Active Directory security group to be replicate in another.