From 614b9758dd6ea366c2f6d9288869e8a049bb9d90 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 18 Oct 2022 18:22:45 -0400 Subject: [PATCH] runspace fixes (#288) * cleanup and rebase test (#244) * Test 2022 (#240) * Merge Gaming Tweaks and Temp Files Addition (#193) * Update README.md * QOL Terminal - Win Update Revamp * Fix Flickering * Quick Fix - UAC Property error * Network Performance Tweak * Gaming Tweaks * Delete Temp Files Addition * Delete Temp Files GUI * Added LibreOffice to applications.json and winutil.ps1 to fix #171 (#178) * Fixes missing LibreOffice (#171) Added missing LibreOffice to fix issue #171. * Fixes missing LibreOffice (#171) Added LibreOffice to winutil.ps1 to fix issue #171. * Create `FUNDING.yml` (#182) * Longer Thing (#186) * redid the whole thing * man * Tweaks to change I like most of these but adding the UAC back in, Disabling Long Paths, and removing TPM properties aren't approved in the default essential tweaks. This should have been put into the Undo all portion Co-authored-by: Chris Titus * Move winget install to user temp folder (#192) * Move winget install to user temp folder * Fix path variable Co-authored-by: Chris Titus * Disable UAC Commit * Disk Cleanup Addition * added check for checking if path exists for TPM (#195) * Disable Gamebar Presence Writer (#202) * Fixed GameDVR Code Registry values were not changing after applying GameDVR tweaks. Because all the registry tweaks were under if condition in the code. Modified that and now working properly. * Diable Gamebar Presence Writer Gamebar Presence Writer causes stutter in games, while running in background. Deactivated the trigger of Gamebar Presence Writer to resolve this. * Added Simplewall for Install Requested Feature ChrisTitusTech#56 (#205) * Added KDENLive Video Editor for Install Requested Feature #38 (#206) * Added WizTree for Install Requested Feature #42 (#207) * Added Viber for Install Requested Feature ChrisTitusTech/winutil#102 (#208) * Added Tor Browser for Install (#209) * Added Internet Download Manager for Install (#210) * Added Glary Utilities for install (#214) * Added option to Disable Notifications and Action Center (#220) * added option for set classic right click menu (#223) * Create Edge_Removal.bat * Added option for remove microsoft edge (#224) * Added option for remove microsoft edge * Update winutil.ps1 Co-authored-by: Chris Titus * Added Dark Mode (#225) * Added option to remove cortana (#226) Co-authored-by: Chris Titus * Putting it all in the same console window * fix missing bracket Co-authored-by: hoffmanra <33332650+hoffmanra@users.noreply.github.com> Co-authored-by: Robin Avery Co-authored-by: Sarah <45071533+PrincessAkira@users.noreply.github.com> Co-authored-by: DeveloperDurp Co-authored-by: Dipayan Biswas <108147735+d1payan@users.noreply.github.com> Co-authored-by: Padsala Tushal <57517785+padsalatushal@users.noreply.github.com> * Fix Disk Cleanup Label * Update winutil.ps1 Co-authored-by: hoffmanra <33332650+hoffmanra@users.noreply.github.com> Co-authored-by: Robin Avery Co-authored-by: Sarah <45071533+PrincessAkira@users.noreply.github.com> Co-authored-by: DeveloperDurp Co-authored-by: Dipayan Biswas <108147735+d1payan@users.noreply.github.com> Co-authored-by: Padsala Tushal <57517785+padsalatushal@users.noreply.github.com> * Create winget.ps1 (#281) * Update FUNDING.yml * fixup test (#284) * Create winget.ps1 * Test 2022 (#282) * add store appx gui * emergency fix from bad values from runspace merge * fix brave and task hang * syntax fix * syntax fix * task error check * task error check * task error check * task error check Co-authored-by: hoffmanra <33332650+hoffmanra@users.noreply.github.com> Co-authored-by: Robin Avery Co-authored-by: Sarah <45071533+PrincessAkira@users.noreply.github.com> Co-authored-by: DeveloperDurp Co-authored-by: Dipayan Biswas <108147735+d1payan@users.noreply.github.com> Co-authored-by: Padsala Tushal <57517785+padsalatushal@users.noreply.github.com> --- config/applications.json | 2 +- winutil.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/applications.json b/config/applications.json index b4f67cda..269a072e 100644 --- a/config/applications.json +++ b/config/applications.json @@ -25,7 +25,7 @@ "winget": "BlenderFoundation.Blender" }, "Installbrave": { - "winget": "BraveSoftware.BraveBrowser" + "winget": "Brave.Brave" }, "Installchrome": { "winget": "Google.Chrome" diff --git a/winutil.ps1 b/winutil.ps1 index e7f8721e..4ebd29eb 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -584,6 +584,8 @@ Version 0.1 Write-Logs -Level INFO -Message "Starting ScheduledTask Modification" -LogPath $sync.logfile $ScheduledTaskToModify | ForEach-Object { + Get-ScheduledTask -TaskName "$($psitem.name)" -ErrorAction SilentlyContinue -OutVariable checktask + if ($checktask) { Try{ if($($psitem.State) -eq "Disabled"){ Disable-ScheduledTask -TaskName "$($psitem.name)" -ErrorAction Stop | Out-Null @@ -593,7 +595,8 @@ Version 0.1 } Write-Logs -Level INFO -Message "Scheduled Task $($psitem.name) set to $($psitem.State)" -LogPath $sync.logfile }Catch{Write-Logs -Level ERROR -Message "Unable to set Scheduled Task $($psitem.name) set to $($psitem.State)" -LogPath $sync.logfile} - } + } + } Write-Logs -Level INFO -Message "Finished setting ScheduledTasks" -LogPath $sync.logfile }