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

PowerShell: Remediate Microsoft Windows Unquoted Service Path Enumeration

Description The remote Windows host has at least one service installed that uses an unquoted…

Quick 1-liner: get system model number

# the 1-linerwmic computersystem get model,name,manufacturer,systemtype# Get RAM DIMM Slotswmic memorychip get Capacity /format:list

How to Install SSL Certificate(s) on Various Web Servers

Public facing websites often become become targets of attacks such as eavesdropping, denial of service,…
Other project: DragonCoin.com