mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
Quick Fix - UAC Property error
This commit is contained in:
parent
ba3d48b620
commit
e770c2d5da
14
winutil.ps1
14
winutil.ps1
@ -551,7 +551,6 @@ $WPFdesktop.Add_Click({
|
|||||||
$WPFMiscTweaksNum.IsChecked = $true
|
$WPFMiscTweaksNum.IsChecked = $true
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
$WPFMiscTweaksLapPower.IsChecked = $false
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $false
|
$WPFMiscTweaksLapNum.IsChecked = $false
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $true
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFlaptop.Add_Click({
|
$WPFlaptop.Add_Click({
|
||||||
@ -572,7 +571,6 @@ $WPFlaptop.Add_Click({
|
|||||||
$WPFMiscTweaksLapNum.IsChecked = $true
|
$WPFMiscTweaksLapNum.IsChecked = $true
|
||||||
$WPFMiscTweaksPower.IsChecked = $false
|
$WPFMiscTweaksPower.IsChecked = $false
|
||||||
$WPFMiscTweaksNum.IsChecked = $false
|
$WPFMiscTweaksNum.IsChecked = $false
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $true
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFminimal.Add_Click({
|
$WPFminimal.Add_Click({
|
||||||
@ -593,7 +591,6 @@ $WPFminimal.Add_Click({
|
|||||||
$WPFMiscTweaksNum.IsChecked = $false
|
$WPFMiscTweaksNum.IsChecked = $false
|
||||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
$WPFMiscTweaksLapPower.IsChecked = $false
|
||||||
$WPFMiscTweaksLapNum.IsChecked = $false
|
$WPFMiscTweaksLapNum.IsChecked = $false
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $true
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$WPFtweaksbutton.Add_Click({
|
$WPFtweaksbutton.Add_Click({
|
||||||
@ -647,17 +644,6 @@ $WPFtweaksbutton.Add_Click({
|
|||||||
./OOSU10.exe ooshutup10.cfg /quiet
|
./OOSU10.exe ooshutup10.cfg /quiet
|
||||||
$WPFEssTweaksOO.IsChecked = $false
|
$WPFEssTweaksOO.IsChecked = $false
|
||||||
}
|
}
|
||||||
If ( $WPFMiscTweaksDisableUAC.IsChecked -eq $true) {
|
|
||||||
Write-Host "Disabling UAC..."
|
|
||||||
# This below is the pussy mode which can break some apps. Please. Leave this on 1.
|
|
||||||
# below i will show a way to do it without breaking some Apps that check UAC. U need to be admin tho.
|
|
||||||
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Type DWord -Value 0
|
|
||||||
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Type DWord -Value 0 # Default is 5
|
|
||||||
# This will set the GPO Entry in Security so that Admin users elevate without any prompt while normal users still elevate and u can even leave it ennabled.
|
|
||||||
# It will just not bother u anymore
|
|
||||||
|
|
||||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
|
||||||
}
|
|
||||||
If ( $WPFEssTweaksRP.IsChecked -eq $true ) {
|
If ( $WPFEssTweaksRP.IsChecked -eq $true ) {
|
||||||
Write-Host "Creating Restore Point in case something bad happens"
|
Write-Host "Creating Restore Point in case something bad happens"
|
||||||
Enable-ComputerRestore -Drive "$env:SystemDrive"
|
Enable-ComputerRestore -Drive "$env:SystemDrive"
|
||||||
|
Loading…
Reference in New Issue
Block a user