mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 06:35:51 -06:00
added option for set classic right click menu (#223)
This commit is contained in:
parent
122918e3dc
commit
0201656755
@ -187,9 +187,10 @@
|
||||
<CheckBox Name="MiscTweaksDisplay" Content="Set Display for Performance" Margin="5,0"/>
|
||||
<CheckBox Name="MiscTweaksUTC" Content="Set Time to UTC (Dual Boot)" Margin="5,0"/>
|
||||
<CheckBox Name="MiscTweaksDisableUAC" Content="Disable UAC" Margin="5,0"/>
|
||||
<CheckBox Name="WPFMiscTweaksDisableNotifications" Content="Disable Notification" Margin="5,0"/>
|
||||
<CheckBox Name="MiscTweaksDisableNotifications" Content="Disable Notification" Margin="5,0"/>
|
||||
<CheckBox Name="MiscTweaksDisableTPMCheck" Content="Disable TPM on Update" Margin="5,0"/>
|
||||
<CheckBox Name="EssTweaksDeBloat" Content="Remove ALL MS Store Apps" Margin="5,0"/>
|
||||
<CheckBox Name="MiscTweaksRightClickMenu" Content="Set Classic Right-Click Menu " Margin="5,0"/>
|
||||
|
||||
<Button Name="tweaksbutton" Background="AliceBlue" Content="Run Tweaks" Margin="20,10,20,0"/>
|
||||
<Button Name="undoall" Background="AliceBlue" Content="Undo All Tweaks" Margin="20,5"/>
|
||||
|
24
winutil.ps1
24
winutil.ps1
@ -586,7 +586,8 @@ $WPFdesktop.Add_Click({
|
||||
$WPFEssTweaksTele.IsChecked = $true
|
||||
$WPFEssTweaksWifi.IsChecked = $true
|
||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
||||
$WPFWPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
||||
$WPFMiscTweaksPower.IsChecked = $true
|
||||
$WPFMiscTweaksNum.IsChecked = $true
|
||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
||||
@ -610,7 +611,8 @@ $WPFlaptop.Add_Click({
|
||||
$WPFEssTweaksTele.IsChecked = $true
|
||||
$WPFEssTweaksWifi.IsChecked = $true
|
||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
||||
$WPFWPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
||||
$WPFMiscTweaksLapPower.IsChecked = $true
|
||||
$WPFMiscTweaksLapNum.IsChecked = $true
|
||||
$WPFMiscTweaksPower.IsChecked = $false
|
||||
@ -634,7 +636,8 @@ $WPFminimal.Add_Click({
|
||||
$WPFEssTweaksTele.IsChecked = $true
|
||||
$WPFEssTweaksWifi.IsChecked = $false
|
||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
||||
$WPFWPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
||||
$WPFMiscTweaksPower.IsChecked = $false
|
||||
$WPFMiscTweaksNum.IsChecked = $false
|
||||
$WPFMiscTweaksLapPower.IsChecked = $false
|
||||
@ -740,16 +743,19 @@ $WPFtweaksbutton.Add_Click({
|
||||
$WPFMiscTweaksDisableUAC.IsChecked = $false
|
||||
}
|
||||
|
||||
If ( $WPFWPFMiscTweaksDisableNotifications.IsChecked -eq $true) {
|
||||
If ( $WPFMiscTweaksDisableNotifications.IsChecked -eq $true ) {
|
||||
Write-Host "Disabling Notifications and Action Center..."
|
||||
|
||||
New-Item -Path "HKCU:\Software\Policies\Microsoft\Windows" -Name "Explorer" -force
|
||||
New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -PropertyType "DWord" -Value 1
|
||||
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -PropertyType "DWord" -Value 0 -force
|
||||
|
||||
$WPFWPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
$WPFMiscTweaksDisableNotifications.IsChecked = $false
|
||||
}
|
||||
|
||||
If ( $WPFMiscTweaksRightClickMenu.IsChecked -eq $true ) {
|
||||
Write-Host "Setting Classic Right-Click Menu..."
|
||||
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Name "InprocServer32" -force -value ""
|
||||
$WPFMiscTweaksRightClickMenu.IsChecked = $false
|
||||
}
|
||||
|
||||
If ( $WPFEssTweaksOO.IsChecked -eq $true ) {
|
||||
Write-Host "Running O&O Shutup with Recommended Settings"
|
||||
curl.exe -ss "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -o ooshutup10.cfg
|
||||
@ -1350,6 +1356,8 @@ $WPFundoall.Add_Click({
|
||||
Write-Host "Enabling Notifications and Action Center"
|
||||
Remove-Item -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled"
|
||||
Write-Host "Restoring Default Right Click Menu Layout"
|
||||
Remove-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Recurse -Confirm:$false -Force
|
||||
Write-Host "Done - Reverted to Stock Settings"
|
||||
|
||||
#Enable Gamebar Presence Writer
|
||||
|
Loading…
Reference in New Issue
Block a user