I’m working on a script, to go and unmute the speaks on a local or remote computer, send a message using [Speech] Class
I’ll show you the code below. But I was wondering if it’s possible to use PowerShell to capture a (Record) Microphone input ??
Set Speaker function
Function Set-Speaker($Volume) {
$wshShell = new-object -com wscript.shell;1…50 | % {$wshShell.SendKeys([char]174)};1…$Volume | %{$wshShell.SendKeys([char]175)}}
Set-Speaker -Volume 50
Invoke-Command -ComputerName $PC -scriptblock {
Add-Type -AssemblyName System.speech
$talker = New-Object System.Speech.Synthesis.SpeechSynthesizer
$talker.speak("Hi there .. Your your password expires today. Please change your password now")
}