Posted On April 2, 2019

PowerShell: How to Play a Sound

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: How to Play a Sound
$soundFile="C:\Windows\media\tada.wav"
$sound = new-Object System.Media.SoundPlayer
$sound.SoundLocation=$soundFile
$sound.Play()

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Credit_Invoice_Reprints_ZZ6_7_8.bat

fsguiapp.exe -cm:\mfgsys\fs.cfg -iZZ1{TAB}y2k99{CR}bexe{ESC}zz6{CR}M:\cabsauto\timeout 15fsguiapp.exe -cm:\mfgsys\fs.cfg -iZZ2{TAB}y2k99{CR}bexe{ESC}zz7{CR}M:\cabsauto\timeout 15fsguiapp.exe -cm:\mfgsys\fs.cfg -iZZ3{TAB}y2k99{CR}bexe{ESC}zz8{CR}rem M:\cabsauto\timeout 15rem fsguiapp.exe -s -cm:\mfgsys\fs.cfg -iZZ4{TAB}y2k99{CR}bexe{ESC}zz4{CR}

PowerShell: Unjoin Computer From Domain

# unjoinComputerFromDomain.ps1 # Version 0.02 # Notes: # - This function doesn't delete the referenced…

PowerShell: Alternative to Test-NetConnection for Legacy Windows

This little snippet is useful as a helper function to quickly determine port connectivity between…
Other project: DragonCoin.com