Get the BIOS release date from agent
Gets the BIOS release date from the agent and puts the data into a custom 'date-time' field.
Very nice. Must create custom data fields. Bios Date, date-time value.
Be aware, some BIOS updates do not update the released date. For instance testing with a Dell Optiplex 3050, the version of bios changes but the date does not.
I guess there more to it that simply importing the procedure? If so, I would like those instructions.
You'll need a custom field added called 'BIOS Date', and then when you run the procedure, it adds the data in there.
Possible to change date format to something sort-able? An all numeric date wold be better. Like 01-31-2020
I figured it out. I removed the day from the string. Now it sorts properly.
([datetime]::ParseExact(((Get-WmiObject -Class Win32_BIOS).ReleaseDate).Substring(0,14),'yyyyMMddHHmmss', $null)).ToString('yyyy-MM')