Extensions: Add Dev Essentials, Network Tools
This commit is contained in:
1 parent
594c2fb051
commit
cfe5fea46e
2 files changed
+63
No files matched your search
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user