Skip to content

Instantly share code, notes, and snippets.

@timyhac
Last active June 16, 2016 02:10
Show Gist options
  • Save timyhac/53c380e4ad1ab3b334d1b1184e0fcbda to your computer and use it in GitHub Desktop.
Save timyhac/53c380e4ad1ab3b334d1b1184e0fcbda to your computer and use it in GitHub Desktop.
# For Powershell < 4.0
$theHash = ((certutil -hashfile $msodbcsql_Local MD5)[1] -replace '\s','')
# Powershell >= 4 have Get-FileHash
# https://technet.microsoft.com/en-us/library/dn520872(v=wps.630).aspx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment