mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-09 06:24:56 -06:00
* Fix issue in #14 - It seems that Chris forgot to add a button for the Repair Windows Update Script and accidentally put it under the Default Windows Update Settings button. - Fixed by adding the $WPFFixesUpdate.Add_Click function before the Reset Script - Fixes #14 * decoupling xaml and ps1 (#7) Co-authored-by: Chris Titus <dfm.titus@gmail.com> Co-authored-by: Rahul Somasundaram <rahulstsgr@gmail.com> Co-authored-by: Chris Titus <dfm.titus@gmail.com>
This commit is contained in:
parent
3393fba7d7
commit
86628c9d30
@ -7,7 +7,7 @@
|
||||
|
||||
# $inputXML = Get-Content "MainWindow.xaml" #uncomment for development
|
||||
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/MainWindow.xaml") #uncomment for Production
|
||||
|
||||
|
||||
$inputXML = $inputXML -replace 'mc:Ignorable="d"','' -replace "x:N",'N' -replace '^<Win.*', '<Window'
|
||||
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
|
||||
[xml]$XAML = $inputXML
|
||||
@ -1272,7 +1272,8 @@ foreach ($service in $services) {
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays " -ErrorAction SilentlyContinue
|
||||
|
||||
})
|
||||
$WPFFixesUpdate.Add_Click({
|
||||
### Reset Windows Update Script - reregister dlls, services, and remove registry entires.
|
||||
Write-Host "1. Stopping Windows Update Services..."
|
||||
Stop-Service -Name BITS
|
||||
|
Loading…
Reference in New Issue
Block a user