From b2eeda9eb2cad41dabc2b01fe660b95eb14f17bb Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 3 Jun 2026 13:46:17 -0500 Subject: [PATCH] chore: Update generated dev docs (#4627) --- docs/content/dev/features/Fixes/Autologin.md | 12 ++----- docs/content/dev/features/Fixes/Network.md | 37 ++------------------ 2 files changed, 5 insertions(+), 44 deletions(-) diff --git a/docs/content/dev/features/Fixes/Autologin.md b/docs/content/dev/features/Fixes/Autologin.md index a0b46675..6462acd2 100644 --- a/docs/content/dev/features/Fixes/Autologin.md +++ b/docs/content/dev/features/Fixes/Autologin.md @@ -5,15 +5,7 @@ description: "" ```powershell {filename="functions/public/Invoke-WPFPanelAutologin.ps1",linenos=inline,linenostart=1} function Invoke-WPFPanelAutologin { - <# - - .SYNOPSIS - Enables autologin using Sysinternals Autologon.exe - - #> - - # Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon - Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe" - cmd /c "$env:temp\autologin.exe" /accepteula + Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$Env:Temp\autologin.exe" + Start-Process -FilePath "$Env:Temp\autologin.exe" -ArgumentList /accepteula } ``` diff --git a/docs/content/dev/features/Fixes/Network.md b/docs/content/dev/features/Fixes/Network.md index 84af6f7b..d163a7d3 100644 --- a/docs/content/dev/features/Fixes/Network.md +++ b/docs/content/dev/features/Fixes/Network.md @@ -5,39 +5,8 @@ description: "" ```powershell {filename="functions/public/Invoke-WPFFixesNetwork.ps1",linenos=inline,linenostart=1} function Invoke-WPFFixesNetwork { - <# - - .SYNOPSIS - Resets various network configurations - - #> - - Write-Host "Resetting Network with netsh" - - Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" - # Reset WinSock catalog to a clean state - Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" - - Set-WinUtilTaskbaritem -state "Normal" -value 0.35 -overlay "logo" - # Resets WinHTTP proxy setting to DIRECT - Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" - - Set-WinUtilTaskbaritem -state "Normal" -value 0.7 -overlay "logo" - # Removes all user configured IP settings - Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" - - Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" - - 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 "-- Network Configuration has been Reset --" - Write-Host "==========================================" + netsh winsock reset + netsh int ip reset + Write-Host "Network Configuration has been Reset Please restart your computer." } ```