Files
Flyoobe/Flyoobe.Extensions/Developer Essentials.ps1
T

33 lines
1.0 KiB
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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"
}
}