forked from ChrisTitusTech/winutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Winget Sources fix (ChrisTitusTech#1773) - Sometimes, if Winget is installed under user-scope, the source isn't properly installed so that the Admin user can properly use Winget. - This change installs the sources directly from the Winget CDN. - Fixes ChrisTitusTech#1771 microsoft/winget-cli#3258 (reply in thread) * Compile Winutil * Finished conversion of DISM commands into DISM cmdlets (ChrisTitusTech#1776) * Continue conversion Began 2nd stage of DISM command conversion. Almost all commands have been replaced by cmdlets * Continue conversion (part 2) Finished part 2 of DISM command to cmdlet conversion * Add New Toggle to Disable/Enable Widgets found in Taskbar (ChrisTitusTech#1768) * Compile Winutil * Fix Search Box Not Showing Apps/Tweaks Checkboxes When typing out Capital-Letters (ChrisTitusTech#1770) * Compile Winutil * Add Microsoft Power Automate and Swift toolchain (ChrisTitusTech#1774) * Add power automate * Add swift toolchain * Compile Winutil * Restart Explorer after Applying/Undoing Classic Right-Click Advance Tweak (ChrisTitusTech#1778) In general, I've added two lines of code to get the explorer process using 'Get-Process', then passed the process object into 'Stop-Process', Windows will automatically restart explorer, so there's no need to run a new process for explorer. Note: restarting explorer in the UndoScript might not be necessary, as it works just fine without it, that's according to the tests done by the author of this commit. * Compile Winutil * Fix capital --------- Co-authored-by: Rux <[email protected]> Co-authored-by: ChrisTitusTech <[email protected]> Co-authored-by: CodingWonders <[email protected]> Co-authored-by: Mr.k <[email protected]>
- Loading branch information
1 parent
4a7c8a3
commit 87dc6a1
Showing
12 changed files
with
267 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
function Invoke-WinUtilTaskbarWidgets { | ||
<# | ||
.SYNOPSIS | ||
Enable/Disable Taskbar Widgets | ||
.PARAMETER Enabled | ||
Indicates whether to enable or disable Taskbar Widgets | ||
#> | ||
Param($Enabled) | ||
Try{ | ||
if ($Enabled -eq $false){ | ||
Write-Host "Enabling Taskbar Widgets" | ||
$value = 1 | ||
} | ||
else { | ||
Write-Host "Disabling Taskbar Widgets" | ||
$value = 0 | ||
} | ||
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" | ||
Set-ItemProperty -Path $Path -Name TaskbarDa -Value $value | ||
} | ||
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.