Add-Type -Assembly System.Speech;
$voice = New-Object -TypeName 'System.Speech.Synthesis.SpeechSynthesizer';
$voice.Speak("I've got a P H D in pain and a master's in disaster.");
Thursday, June 7, 2018
Powershell speaks
Powershell file hashing
PS C:\> dir c:\ -Recurse | ? {$_.GetType().Name -eq 'FileInfo'} | % {$_.FullName + '|' + $_.Length.To
String() + '|' + $_.Name + '|' + $_.Extension + '|' + (Get-FileHash -Path $_.FullName -Algorithm SHA1).Hash } > .\filehashes.txt
Subscribe to:
Comments (Atom)