Updated windows start sound to create a task per user.
This commit is contained in:
2026-05-25 09:34:25 +00:00
parent d3950207c3
commit e89ac5d095
+1 -1
View File
@@ -200,7 +200,7 @@ Function Update-Sounds {
$action = New-ScheduledTaskAction -Execute "$folderPath\win95startsound.vbs" $action = New-ScheduledTaskAction -Execute "$folderPath\win95startsound.vbs"
$trigger = New-ScheduledTaskTrigger -AtLogon $trigger = New-ScheduledTaskTrigger -AtLogon
$principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive $principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive
Register-ScheduledTask -TaskName "Win95-Startup-Sound" -Action $action -Trigger $trigger -Principal $principal -Description "Plays the windows 95 startup music at login" Register-ScheduledTask -TaskName "Win95-Startup-Sound-$env:USERNAME" -Action $action -Trigger $trigger -Principal $principal -Description "Plays the windows 95 startup music at login"
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV" Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV"
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemExclamation\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV" Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemExclamation\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV"