diff --git a/start.ps1 b/start.ps1 index 9b629b1..6966461 100644 --- a/start.ps1 +++ b/start.ps1 @@ -200,7 +200,7 @@ Function Update-Sounds { $action = New-ScheduledTaskAction -Execute "$folderPath\win95startsound.vbs" $trigger = New-ScheduledTaskTrigger -AtLogon $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\SystemExclamation\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV"