'(get-computerinfo).osuptime' change output format
10:25 19 May 2025

Can the output of the PowerShell command (get-computerinfo).osuptime be changed?

enter image description here

This how is currently displays by default.

Is there a way to make it something more like the following format: dd:hh:mm:ss

I would like do do this using a .ps1 so I can just run it, check the uptime in that format, and close the PowerShell window.

windows powershell