We tried to filter hotfixes by date. We got strange results. I have here a code snip to display the installation date for one specific hotfix. We installed this hotfix at 11. May 2016.
Get-HotFix -Id 'KB3146963' |
Select-Object -Property hotfixID, InstalledOn, `
@{Name="Day"; Expression = {$_.InstalledOn.Day}}, `
@{Name="Month"; Expression = {$_.InstalledOn.Month}}, `
@{Name="Year"; Expression = {$_.InstalledOn.Year}} |
Format-Table -AutoSize
hotfixID InstalledOn DayMonth Year
KB3146963 05.11.2016 00:00:00 5 11 2016
As you can see, the date is in the future.
We are using an english Windows 2012 R2 server and running PowerShell 4.0. We are using Switzerland as Country in Region and language.
What can i do to get a correct date?