Skip to content

Commit

Permalink
v4.7.0
Browse files Browse the repository at this point in the history
- Added code to turn off account notifications
  • Loading branch information
caglaryalcin committed Jul 2, 2024
1 parent 2eec7ff commit 49e4e7f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions set.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1707,6 +1707,19 @@ Function SystemSettings {

PasswordNeverExpires

Function DisableAccountNotifications {
Write-Host "Disabling Account Notifications..." -NoNewline
try {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_AccountNotifications" -Type DWord -Value 0
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}

DisableAccountNotifications

##########
#region Taskbar Settings
##########
Expand Down

0 comments on commit 49e4e7f

Please sign in to comment.