mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
d5047e9a8d
* Fixes for netsh and update reset * Allow remotesigned * Fix unattended sleep timer to show * Fix Service Tweaks * Fix Multiple HTTPS connect issues
25 lines
963 B
PowerShell
25 lines
963 B
PowerShell
function Invoke-WPFFixesNetwork {
|
|
<#
|
|
|
|
.DESCRIPTION
|
|
PlaceHolder
|
|
|
|
#>
|
|
|
|
Write-Host "Reseting Network with netsh"
|
|
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 "================================="
|
|
} |