From cfe5fea46e38a73165697317be98b88375b29bd3 Mon Sep 17 00:00:00 2001 From: Belim Date: Fri, 12 Sep 2025 21:45:29 +0200 Subject: [PATCH] Extensions: Add Dev Essentials, Network Tools --- Flyoobe.Extensions/Developer Essentials.ps1 | 32 +++++++++++++++++++++ Flyoobe.Extensions/Network Tools.ps1 | 31 ++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Flyoobe.Extensions/Developer Essentials.ps1 create mode 100644 Flyoobe.Extensions/Network Tools.ps1 diff --git a/Flyoobe.Extensions/Developer Essentials.ps1 b/Flyoobe.Extensions/Developer Essentials.ps1 new file mode 100644 index 0000000..ec9b997 --- /dev/null +++ b/Flyoobe.Extensions/Developer Essentials.ps1 @@ -0,0 +1,32 @@ +# Developer Essentials – Quick access to developer tools and features +# Host: console +# Options: Enable Developer Mode; Install WSL; Open Windows Features; Open Device Manager + +param([string]$choice) + +switch ($choice) { + "Enable Developer Mode" { + Write-Output "Enabling Developer Mode..." + reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d 1 + Write-Output "✔ Developer Mode enabled." + } + + "Install WSL" { + Write-Output "Installing Windows Subsystem for Linux..." + Start-Process "wsl.exe" -ArgumentList "--install" -Verb runAs + } + + "Open Windows Features" { + Write-Output "Opening Windows Features dialog..." + Start-Process "optionalfeatures.exe" + } + + "Open Device Manager" { + Write-Output "Opening Device Manager..." + Start-Process "devmgmt.msc" + } + + default { + Write-Output "Unknown option: $choice" + } +} diff --git a/Flyoobe.Extensions/Network Tools.ps1 b/Flyoobe.Extensions/Network Tools.ps1 new file mode 100644 index 0000000..6282c72 --- /dev/null +++ b/Flyoobe.Extensions/Network Tools.ps1 @@ -0,0 +1,31 @@ +# Network Tools – Common network troubleshooting actions +# Host: console +# Options: Flush DNS; Reset Winsock; Show active connections; Test Ping (8.8.8.8) + +param([string]$choice) + +switch ($choice) { + "Flush DNS" { + Write-Output "Flushing DNS cache..." + ipconfig /flushdns + } + + "Reset Winsock" { + Write-Output "Resetting Winsock..." + netsh winsock reset + } + + "Show active connections" { + Write-Output "Active TCP connections:" + netstat -ano + } + + "Test Ping (8.8.8.8)" { + Write-Output "Pinging Google DNS..." + ping 8.8.8.8 + } + + default { + Write-Output "Unknown option: $choice" + } +}