Skip to content

Commit

Permalink
v4.17.0
Browse files Browse the repository at this point in the history
- added sudo
  • Loading branch information
caglaryalcin committed Oct 22, 2024
1 parent a5416ac commit 620e35f
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 @@ -1833,6 +1833,19 @@ Function SystemSettings {

LocationNotifications

Function EnableSudo {
Write-Host "Enabling Sudo..." -NoNewline
try {
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Sudo" -Name "Enabled" -Type DWord -Value 1
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}

EnableSudo

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

0 comments on commit 620e35f

Please sign in to comment.