Test 2023 7 20 (#917)

* Remove Edge from Start Menu and Desktop (#898)

* Update edgeremoval.bat

* Fix Edge not being deleted from Desktop

* Compile Winutil

* fix yubikey users service

* Compile Winutil

* AJRouter and Kiosk Disable

* Compile Winutil

* TermService enable

This service will hang when applying tweaks. Changing to Auto from Manual

* Compile Winutil

* Fix bug with Telemetry Tweak

services should NOT be tweaked here

* dupe tweak removal

* hibernate off and delete

* Compile Winutil

* Cleaning Windows Update Folder

* Compile Winutil

* GameDVR Fix

* Compile Winutil

* Fixed consistency in variable names and values inside edgeremoval.bat (#902)

* Compile Winutil

* add spdx license

* Compile Winutil

* Updated Dark mode check (#904)

* Compile Winutil

* Update Dark Mode Check

updated the theme check to use the existing function

* Description update

Updated Description

---------

Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com>

* Compile Winutil

* fixes #569

* Compile Winutil

* Added Bing Search toggle plus some support functions (#908)

* Compile Winutil

* Update winget.ps1

* Compile Winutil

* Fix Winget Install

* Compile Winutil

* Update Install-WinUtilWinget.ps1

* Compile Winutil

* Update Install-WinUtilWinget.ps1

* Compile Winutil

* Update Install-WinUtilWinget.ps1

* Compile Winutil

* Winget fixes

* Compile Winutil

---------

Co-authored-by: Antun Nitraj <antnitraj@gmail.com>
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: DeveloperDurp <developerdurp@durp.info>
Co-authored-by: DeveloperDurp <DeveloperDurp@users.noreply.github.com>
This commit is contained in:
Chris Titus
2023-07-27 16:06:41 -05:00
committed by GitHub
parent a44612378b
commit a56aeefc7f
13 changed files with 470 additions and 245 deletions

View File

@ -1,33 +0,0 @@
Function Invoke-WPFDarkMode {
<#
.DESCRIPTION
Sets Dark Mode on or off
#>
Param($DarkMoveEnabled)
Try{
if ($DarkMoveEnabled -eq $false){
Write-Host "Enabling Dark Mode"
$DarkMoveValue = 0
}
else {
Write-Host "Disabling Dark Mode"
$DarkMoveValue = 1
}
$Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
Set-ItemProperty -Path $Theme -Name AppsUseLightTheme -Value $DarkMoveValue
Set-ItemProperty -Path $Theme -Name SystemUsesLightTheme -Value $DarkMoveValue
}
Catch [System.Security.SecurityException] {
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
}
Catch [System.Management.Automation.ItemNotFoundException] {
Write-Warning $psitem.Exception.ErrorRecord
}
Catch{
Write-Warning "Unable to set $Name due to unhandled exception"
Write-Warning $psitem.Exception.StackTrace
}
}

View File

@ -0,0 +1,23 @@
function Invoke-WPFToggle {
<#
.DESCRIPTION
Meant to make creating toggle switches easier. There is a section below in the gui that will assign this function to every switch.
This way you can dictate what each button does from this function.
Input will be the name of the toggle that is checked.
#>
Param ([string]$Button)
#Use this to get the name of the button
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
Switch -Wildcard ($Button){
"WPFToggleDarkMode" {Invoke-WinUtilDarkMode -DarkMoveEnabled $(Get-WinUtilToggleStatus WPFToggleDarkMode)}
"WPFToggleBingSearch" {Invoke-WinUtilBingSearch $(Get-WinUtilToggleStatus WPFToggleBingSearch)}
}
}