From 9fb902af7b1b94db7ba75bd677e669b7f491703a Mon Sep 17 00:00:00 2001 From: Kurtis Date: Mon, 3 Nov 2025 23:47:23 +1000 Subject: [PATCH] Update Added windows 95 start sound to scheduled tasks. --- start.ps1 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/start.ps1 b/start.ps1 index 65e8504..7a0496b 100644 --- a/start.ps1 +++ b/start.ps1 @@ -178,8 +178,18 @@ Function Install-Clippy { Function Update-Sounds { Download-Sounds - Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\WindowsLogon\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\The-Microsoft-Sound.wav" - Set-ItemProperty -Path "HKCU:\AppEvents\EventLabels\WindowsLogon\" -Name "ExcludeFromCPL" -Value "0" + Set-Content -Path "$folderPath\win95startsound.vbs" -Value "set oVoice = CreateObject(`"SAPI.SpVoice`")" + Add-Content -Path "$folderPath\win95startsound.vbs" -Value "set oSpFileStream = CreateObject(`"SAPI.SpFileStream`")" + Add-Content -Path "$folderPath\win95startsound.vbs" -Value "oSpFileStream.Open `"$folderPath\win95-sounds\The-Microsoft-Sound.wav`"" + Add-Content -Path "$folderPath\win95startsound.vbs" -Value "oVoice.SpeakStream oSpFileStream" + Add-Content -Path "$folderPath\win95startsound.vbs" -Value "oSpFileStream.Close" + + New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\BootAnimation" -Name "DisableStartupSound" -PropertyType DWORD -Value 1 + $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" + 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\SystemQuestion\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV" @@ -194,6 +204,8 @@ Function Update-Icons { @("$ENV:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\File Explorer.lnk", "$folderPathicons\win95-icons\Folder.ico"), @("$ENV:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Thunderbird.lnk", + "$folderPathicons\win95-icons\Mail.ico"), + @("$ENV:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Zen.lnk", "$folderPathicons\win95-icons\Mail.ico") )