Steve Borba

My notes, I hope they help you, feel free to comment/add to them

Category: Powershell

Powershell Can Talk

I was working on some powershell scripts and my son came into the room and asked me if I could get the computer to talk to him, so I had to figure out how to do it: Add-Type -AssemblyName System.speech $speak = New-Object System.Speech.Synthesis.SpeechSynthesizer ForEach ($Voice in ($speak.GetInstalledVoices() | % {$_.VoiceInfo.Name})) { $speak.SelectVoice($Voice) $speak.Speak(“I am […]

WOL with Powershell

Here is a Powershell Script to send a WOL packet (and I’ve had it work over a routed connection, but it depends if the router will broadcast if doesn’t have arp for the IP): function Send-WOL { <# .SYNOPSIS Send a WOL packet to a broadcast address .PARAMETER mac The MAC address of the device […]