07 15 2023 testing (#883)

* Fixes for netsh and update reset

* Allow remotesigned

* Fix unattended sleep timer to show

* Fix Service Tweaks

* Fix Multiple HTTPS connect issues
This commit is contained in:
Chris Titus
2023-07-15 10:42:11 -05:00
committed by GitHub
parent 68927444b6
commit d5047e9a8d
8 changed files with 404 additions and 207 deletions

View File

@ -5,7 +5,21 @@ function Invoke-WPFFixesNetwork {
PlaceHolder
#>
Write-Host "Reseting Network with netsh"
netsh int ip reset
netsh winsock reset
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset"
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy"
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset"
Write-Host "Process complete. Please reboot your computer."
$ButtonType = [System.Windows.MessageBoxButton]::OK
$MessageboxTitle = "Network Reset "
$Messageboxbody = ("Stock settings loaded.`n Please reboot your computer")
$MessageIcon = [System.Windows.MessageBoxImage]::Information
[System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon)
Write-Host "================================="
Write-Host "-- Reset Network Configuration --"
Write-Host "================================="
}