Skip to content

Instantly share code, notes, and snippets.

@kayasax kayasax/get-hotfix2.ps1
Last active Nov 19, 2018

Embed
What would you like to do?
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")))}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.