PowerShell | The PowerShell Song


function Out-Text {
param(
[Parameter(Mandatory=$true)]
$Text,

[switch]
$Drunk
)

$object = New-Object -ComObject SAPI.SpVoice
if ($drunk) { $object.Rate = -10 }
$object.Speak($text) | Out-Null
}

Out-text "hi tiago duarte. how are you?"


Check out more cool tips from PowerShell Power Tips

Comments

Popular posts from this blog

Breaking down document locking in SharePoint

Working around X-Frame-Options for iframes

Document ID not being generated