Update
Updated windows start sound to create a task per user.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user