kayasax
8/27/2015 - 1:50 PM

get-hotfix2 correct missing intalledon date of get-hotfix cmdlet (credits to http://powershell.com/cs/forums/p/12409/21917.aspx#21917 ht

get-hotfix2 correct missing intalledon date of get-hotfix cmdlet (credits to http://powershell.com/cs/forums/p/12409/21917.aspx#21917 http://powershell.com/cs/members/PeterJurgens/default.aspx)

function get-hotfix2{
param($computername)
	#$PSBOundParameters
	Get-HotFix @PSBOundParameters |
	Select-Object description,hotfixid,installedby, @{l="InstalledOn";e={[DateTime]::Parse($_.psbase.properties["installedon"].value,$([System.Globalization.CultureInfo]::GetCultureInfo("en-US")))}}
}