in , , ,

I’m sure no one here would condone this irresponsible behaviour πŸ˜‰

I'm sure no one here would condone this irresponsible behaviour πŸ˜‰ | computer-memes, web-memes, website-memes, assembly-memes, random-memes, security-memes, json-memes, .net-memes, powershell-memes, shell-memes, http-memes, object-memes, parsing-memes, cli-memes, microsoft-memes, IT-memes, credentials-memes | ProgrammerHumor.io
computer-memes, web-memes, website-memes, assembly-memes, random-memes, security-memes, json-memes, .net-memes, powershell-memes, shell-memes, http-memes, object-memes, parsing-memes, cli-memes, microsoft-memes, IT-memes, credentials-memes | ProgrammerHumor.io

Content

I push a Powershell script to one particular user that fetches a random cat fact from a website then reads it through their computer speakers out loud. They’re thoroughly convinced that their boss, a non-IT person, is doing it to them. EDIT: For everyone asking for the script. Add-Type -AssemblyName System. Speech SpeechSynth New-Object System. Speec h. Synthesis.SpeechSynthesizer SpeechSynth.SelectVoice("Microsoft Zira Desktop") Browser New-Object System.Net.WebClient Browser.Proxy.Credentials System. Net.CredentialCache: :DefaultN etworkCredentials Net.ServicePointManage r:: SecurityProtocol Net.SecurityProtocolType::Tls12 CatFact (ConvertFrom-Json (Invoke-WebRequest -Verbose -Uri https:catfact.ninjafact -UseBasicParsing)) CatFact.fact SpeechSynth.Speak("Did you know ?") SpeechSynth.Speak(CatFact.fact)