Repository navigation
get_SystemSound
James Brundage edited this page Oct 23, 2026
·
1 revision
Returns files on MacOS and Linux, and Registry Keys on Windows.
| Operating System | Sound Location |
|---|---|
| Linux | /usr/share/sounds |
| MacOS | /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/ |
| Windows | HKCU:\AppEvents\Schemes\Apps |
View Source
<#
.SYNOPSIS
Gets System Sounds
.DESCRIPTION
Gets System Sounds.
Returns files on MacOS and Linux, and Registry Keys on Windows.
.NOTES
|Operating System|Sound Location|
|-|-|
|Linux|`/usr/share/sounds`|
|MacOS|`/System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/`|
|Windows|`HKCU:\AppEvents\Schemes\Apps`|
#>
if ($IsMacOS) {
Get-ChildItem "/System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/" -Recurse -File
}
elseif ($IsLinux) {
Get-ChildItem "/usr/share/sounds" -Recurse -File
}
else {
Get-ChildItem -Path HKCU:\AppEvents\Schemes\Apps -Recurse
}If you like making waves, please star this repo and consider sponsoring