Hi all,
I'm using...
wmic /node:%Hostname% os get lastbootuptime
... which gives the output as a WMIDateTime (Last time a PC was rebooted)...
20160104102930
Is there a way for me to convert this output to a nicely formatted date/time from within the batch file?
In this case, I'd like the output to be something like 04/01/2016 10:29
I've had a look around the net, but couldn't find what I needed. Surely batch can do this, without having to rely on Javascript/Powershell?
Thank you.