Powershell speaks…if you ask nicely enough!

How cool would it be if ‘Mr Windows Server’ could find the time to notify you that your Powershell script has finished? Well, he can, just add this to your script, ramp up the speakers and you have a new friend letting you know when he’s done!

$MrWindows = new-object -com SAPI.SpVoice
$MrWindows.Speak( “Farm Configuration completed!”, 1 )

 or

$Voice = new-object -com SAPI.SpVoice
$Voice.Speak( “Bore off, I am trying to watch the X Factor!”, 1 )

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s