mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 00:54:47 -05:00
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:
@ -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 "================================="
|
||||
}
|
Reference in New Issue
Block a user