/build/static/layout/Breadcrumb_cap_w.png

Powershell Speaks

I found this at http://powershell.com/cs/blogs/tips/archive/2012/02/20/make-powershell-speak.aspx. I haven't seen it on here. This could get pretty interesting. 

I've added this to the end of a few scripts that I have. Users think their computers are magical.


Add-Type -AssemblyName System.Speech
$synthesizer = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer
$synthesizer.Speak('Installation Complete. Please reboot at your earliest convenience!')



Comments

  • That is too cool... looks like I'll have to start using PowerShell just for fun if nothing else.

    John - jverbosk 12 years ago
    • Yeah I think I'm about to do a post install for my K2 with ('Hey you.... I am done imaging'). - dugullett 12 years ago
      • That would quite useful if my desktops were hooked up to speakers - RandomITPro 12 years ago
  • I'm envisioning some pretty awesome pranks right now. Thanks for the link :D - Ben M 12 years ago
  • On a related note, I wrote an article a long time ago about how to do the same with VBScript: http://mcpmag.com/articles/2007/09/04/talking-scripts.aspx - bkelly 11 years ago
This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ