Advertisement
lincruste

MD5 sum ShellExt

Apr 29th, 2025 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.57 KB | Software | 0 0
  1. # ajout calcul MD5 par ShellExt:
  2. New-Item -Path "HKCU:\Software\Classes\*\shell\Calculer le MD5\command" -Force | Out-Null
  3. Set-ItemProperty -Path "HKCU:\Software\Classes\*\shell\Calculer le MD5" -Name "Icon" -Value "powershell.exe"
  4. Set-ItemProperty -Path 'HKCU:\Software\Classes\*\shell\Calculer le MD5\command' -Name '(default)' -Value 'powershell -NoProfile -NoExit -WindowStyle Hidden -Command "Get-FileHash -Algorithm MD5 -Path ''%1'' | Out-GridView -Title ''MD5 du fichier''"'
  5.  
  6. # nettoyage:
  7. # Remove-Item -Path "HKCU:\Software\Classes\*\shell\Calculer le MD5" -Recurse -Force
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement