Skip to content

Commit 18a9305

Browse files
Update PSTrollFunctions.psm1
1 parent 9cdbc29 commit 18a9305

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

PSTrollFunctions.psm1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Function Set-AudioLevel {
7575
Function Start-CatFact
7676
{
7777
Add-Type -AssemblyName System.speech
78+
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
7879
$SpeechSynth = New-Object System.Speech.Synthesis.SpeechSynthesizer
7980
$CatFact = Invoke-RestMethod -Uri 'https://catfact.ninja/fact' -Method Get | Select-Object -ExpandProperty fact
8081
$SpeechSynth.Speak("did you know?")

0 commit comments

Comments
 (0)