Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nickurt on github.
  • I am nickurt (https://keybase.io/nickurt) on keybase.
  • I have a public key whose fingerprint is F1C6 7F1C AF9B 891B 71A1 B294 CBCA B1BE 4585 2C85

To claim this, I am signing this object:

(get-childitem -Recurse $env:windir\*).VersionInfo.FileVersion > "$env:userprofile\Desktop\fileversion.txt"
@nickurt
nickurt / Get-FileVersionsMSU
Created February 19, 2015 12:18
Get FileVersions from MSU files
Get-ChildItem -Filter *.msu | ForEach {
New-Item ./temp -ItemType directory
expand -F:* $_.FullName ./temp
expand -F:* ./temp/*.cab ./temp
Get-FileVersionsRecursively.ps1 ./temp/* > "$($_.BaseName).csv"
Remove-Item ./temp -Recurse
}
Write-Host ("`nPassword`t $(netsh wlan show profiles name=(netsh wlan show interface | Select-String " SSID\s+: (.*)" |% { $_.Matches.Groups[1].Value }) key=clear | Select-String " Key Content\s+: (.*)" |% { $_.Matches.Groups[1].Value })`n")