From 200645e623a44cd79c8b50d30c83854fa8d781cd Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Sun, 21 Jun 2026 18:58:07 +0700 Subject: [PATCH] =?UTF-8?q?feat(catalog):=20add=2038=20new=20commands=20ac?= =?UTF-8?q?ross=20all=2010=20categories=20(78=20=E2=86=92=20116)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds 38 vetted, embedded commands spanning system-info, network, tweaks, cleanup, power, diagnostics, updates, security and developer groups — e.g. installed updates/drivers/BIOS/apps/monitors, netstat/arp/route/wifi/proxy, dark-mode + Win11 taskbar/clock tweaks, thumbnail/font/prefetch cleanup, balanced plan + power requests + fast-startup toggle, Task/Device/Services consoles + gpresult, winget sources + Store reset, Defender status/full-scan, firewall on/off, WSL shutdown, Sandbox off, long-paths toggle. - Reversible tweaks wired as set↔revert pairs; dev.sandbox.on now links to the new dev.sandbox.off. - EN + VI resource keys added for every command (ResxKeyTests enforces both with no fallback). - Win11-only tweaks (taskbar*, clockseconds*) ship ungated here; the OS-build version-flag mechanism follows in a separate change. All 167 tests pass. Co-Authored-By: Claude Opus 4.8 --- .../Catalog/commands.json | 760 +++++++++++++++++- src/CommandForge.Wpf/Resources/Strings.resx | 228 ++++++ .../Resources/Strings.vi.resx | 228 ++++++ 3 files changed, 1215 insertions(+), 1 deletion(-) diff --git a/src/CommandForge.Infrastructure/Catalog/commands.json b/src/CommandForge.Infrastructure/Catalog/commands.json index a280c1a..f4d764d 100644 --- a/src/CommandForge.Infrastructure/Catalog/commands.json +++ b/src/CommandForge.Infrastructure/Catalog/commands.json @@ -1472,7 +1472,7 @@ "createsRestorePoint": false, "restart": "Always", "restartRegex": null, - "revertCommandId": null, + "revertCommandId": "dev.sandbox.off", "estimatedDuration": "Long", "docUrl": null, "tags": ["windows sandbox", "feature", "isolation", "developer"] @@ -1495,5 +1495,763 @@ "estimatedDuration": "Long", "docUrl": null, "tags": [".net framework 3.5", "netfx3", "feature", "developer"] + }, + { + "id": "info.hotfixes", + "categoryId": "system-info", + "titleKey": "Cmd_info.hotfixes_Title", + "descriptionKey": "Cmd_info.hotfixes_Desc", + "icon": "Update", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object HotFixID,Description,InstalledOn | Format-Table -AutoSize\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Medium", + "docUrl": null, + "tags": ["updates", "hotfix", "patches", "history"] + }, + { + "id": "info.drivers", + "categoryId": "system-info", + "titleKey": "Cmd_info.drivers_Title", + "descriptionKey": "Cmd_info.drivers_Desc", + "icon": "Chip", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-CimInstance Win32_PnPSignedDriver | Select-Object DeviceName,DriverVersion,DriverProviderName | Sort-Object DeviceName | Format-Table -AutoSize\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Medium", + "docUrl": null, + "tags": ["drivers", "devices", "hardware", "info"] + }, + { + "id": "info.bios", + "categoryId": "system-info", + "titleKey": "Cmd_info.bios_Title", + "descriptionKey": "Cmd_info.bios_Desc", + "icon": "Chip", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-CimInstance Win32_BIOS | Format-List Manufacturer,Name,SMBIOSBIOSVersion,SerialNumber,ReleaseDate\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["bios", "firmware", "uefi", "hardware"] + }, + { + "id": "info.env", + "categoryId": "system-info", + "titleKey": "Cmd_info.env_Title", + "descriptionKey": "Cmd_info.env_Desc", + "icon": "ClipboardListOutline", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-ChildItem Env: | Sort-Object Name | Format-Table -AutoSize Name,Value\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["environment", "variables", "path", "info"] + }, + { + "id": "info.installedapps", + "categoryId": "system-info", + "titleKey": "Cmd_info.installedapps_Title", + "descriptionKey": "Cmd_info.installedapps_Desc", + "icon": "PackageVariant", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-ItemProperty 'HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*','HKLM:\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*' | Where-Object DisplayName | Select-Object DisplayName,DisplayVersion,Publisher | Sort-Object DisplayName | Format-Table -AutoSize\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Medium", + "docUrl": null, + "tags": ["installed", "apps", "programs", "uninstall"] + }, + { + "id": "info.monitors", + "categoryId": "system-info", + "titleKey": "Cmd_info.monitors_Title", + "descriptionKey": "Cmd_info.monitors_Desc", + "icon": "Monitor", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-CimInstance Win32_VideoController | Select-Object Name,CurrentHorizontalResolution,CurrentVerticalResolution,CurrentRefreshRate | Format-List\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["monitor", "display", "resolution", "refresh rate"] + }, + { + "id": "net.netstat", + "categoryId": "network", + "titleKey": "Cmd_net.netstat_Title", + "descriptionKey": "Cmd_net.netstat_Desc", + "icon": "Lan", + "executable": "netstat", + "argsTemplate": "-ano", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["network", "connections", "ports", "netstat"] + }, + { + "id": "net.arp", + "categoryId": "network", + "titleKey": "Cmd_net.arp_Title", + "descriptionKey": "Cmd_net.arp_Desc", + "icon": "Ethernet", + "executable": "arp", + "argsTemplate": "-a", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["network", "arp", "cache", "mac"] + }, + { + "id": "net.route", + "categoryId": "network", + "titleKey": "Cmd_net.route_Title", + "descriptionKey": "Cmd_net.route_Desc", + "icon": "Lan", + "executable": "route", + "argsTemplate": "print", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["network", "route", "routing", "table"] + }, + { + "id": "net.wifi.profiles", + "categoryId": "network", + "titleKey": "Cmd_net.wifi.profiles_Title", + "descriptionKey": "Cmd_net.wifi.profiles_Desc", + "icon": "Wifi", + "executable": "netsh", + "argsTemplate": "wlan show profiles", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["network", "wifi", "wlan", "profiles"] + }, + { + "id": "net.proxy.show", + "categoryId": "network", + "titleKey": "Cmd_net.proxy.show_Title", + "descriptionKey": "Cmd_net.proxy.show_Desc", + "icon": "Ip", + "executable": "netsh", + "argsTemplate": "winhttp show proxy", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["network", "proxy", "winhttp"] + }, + { + "id": "tweak.darkmode.on", + "categoryId": "tweaks-shortcuts", + "titleKey": "Cmd_tweak.darkmode.on_Title", + "descriptionKey": "Cmd_tweak.darkmode.on_Desc", + "icon": "Brightness4", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"$p='HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize'; Set-ItemProperty -Path $p -Name AppsUseLightTheme -Value 0 -Type DWord; Set-ItemProperty -Path $p -Name SystemUsesLightTheme -Value 0 -Type DWord; Write-Output 'Dark mode enabled.'\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "tweak.darkmode.off", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["dark mode", "theme", "appearance", "registry", "tweak"], + "affectedRegistryValues": [ + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "name": "AppsUseLightTheme" }, + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "name": "SystemUsesLightTheme" } + ] + }, + { + "id": "tweak.darkmode.off", + "categoryId": "tweaks-shortcuts", + "titleKey": "Cmd_tweak.darkmode.off_Title", + "descriptionKey": "Cmd_tweak.darkmode.off_Desc", + "icon": "Brightness7", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"$p='HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize'; Set-ItemProperty -Path $p -Name AppsUseLightTheme -Value 1 -Type DWord; Set-ItemProperty -Path $p -Name SystemUsesLightTheme -Value 1 -Type DWord; Write-Output 'Light mode enabled.'\"", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "tweak.darkmode.on", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["light mode", "theme", "appearance", "registry", "tweak"], + "affectedRegistryValues": [ + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "name": "AppsUseLightTheme" }, + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "name": "SystemUsesLightTheme" } + ] + }, + { + "id": "tweak.win11.taskbarleft", + "categoryId": "tweaks-shortcuts", + "titleKey": "Cmd_tweak.win11.taskbarleft_Title", + "descriptionKey": "Cmd_tweak.win11.taskbarleft_Desc", + "icon": "FileCog", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Set-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name TaskbarAl -Value 0 -Type DWord; Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue; Start-Sleep -Seconds 1; if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) { Start-Process explorer }; Write-Output 'Taskbar aligned to the left.'\"", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "tweak.win11.taskbarcenter", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["windows 11", "taskbar", "align", "left", "registry", "tweak"], + "affectedRegistryValues": [ + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "TaskbarAl" } + ] + }, + { + "id": "tweak.win11.taskbarcenter", + "categoryId": "tweaks-shortcuts", + "titleKey": "Cmd_tweak.win11.taskbarcenter_Title", + "descriptionKey": "Cmd_tweak.win11.taskbarcenter_Desc", + "icon": "FileCog", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Set-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name TaskbarAl -Value 1 -Type DWord; Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue; Start-Sleep -Seconds 1; if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) { Start-Process explorer }; Write-Output 'Taskbar aligned to the center.'\"", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "tweak.win11.taskbarleft", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["windows 11", "taskbar", "align", "center", "registry", "tweak"], + "affectedRegistryValues": [ + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "TaskbarAl" } + ] + }, + { + "id": "tweak.clockseconds.on", + "categoryId": "tweaks-shortcuts", + "titleKey": "Cmd_tweak.clockseconds.on_Title", + "descriptionKey": "Cmd_tweak.clockseconds.on_Desc", + "icon": "ClockOutline", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Set-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name ShowSecondsInSystemClock -Value 1 -Type DWord; Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue; Start-Sleep -Seconds 1; if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) { Start-Process explorer }; Write-Output 'Seconds shown in the system clock.'\"", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "tweak.clockseconds.off", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["windows 11", "clock", "seconds", "taskbar", "registry", "tweak"], + "affectedRegistryValues": [ + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "ShowSecondsInSystemClock" } + ] + }, + { + "id": "tweak.clockseconds.off", + "categoryId": "tweaks-shortcuts", + "titleKey": "Cmd_tweak.clockseconds.off_Title", + "descriptionKey": "Cmd_tweak.clockseconds.off_Desc", + "icon": "ClockOutline", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Set-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name ShowSecondsInSystemClock -Value 0 -Type DWord; Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue; Start-Sleep -Seconds 1; if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) { Start-Process explorer }; Write-Output 'Seconds hidden from the system clock.'\"", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "tweak.clockseconds.on", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["windows 11", "clock", "seconds", "taskbar", "registry", "tweak"], + "affectedRegistryValues": [ + { "path": "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "ShowSecondsInSystemClock" } + ] + }, + { + "id": "clean.thumbnailcache", + "categoryId": "cleanup", + "titleKey": "Cmd_clean.thumbnailcache_Title", + "descriptionKey": "Cmd_clean.thumbnailcache_Desc", + "icon": "Broom", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue; Remove-Item -Path (Join-Path $env:LocalAppData 'Microsoft\\Windows\\Explorer\\thumbcache_*.db') -Force -ErrorAction SilentlyContinue; Start-Process explorer; Write-Output 'Thumbnail cache cleared.'\"", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["cleanup", "thumbnail", "cache", "explorer"] + }, + { + "id": "clean.fontcache", + "categoryId": "cleanup", + "titleKey": "Cmd_clean.fontcache_Title", + "descriptionKey": "Cmd_clean.fontcache_Desc", + "icon": "Broom", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Stop-Service -Name FontCache -Force -ErrorAction SilentlyContinue; Remove-Item -Path (Join-Path $env:SystemRoot 'ServiceProfiles\\LocalService\\AppData\\Local\\FontCache\\*') -Recurse -Force -ErrorAction SilentlyContinue; Start-Service -Name FontCache -ErrorAction SilentlyContinue; Write-Output 'Font cache cleared.'\"", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Medium", + "docUrl": null, + "tags": ["cleanup", "font", "cache", "service"] + }, + { + "id": "clean.prefetch", + "categoryId": "cleanup", + "titleKey": "Cmd_clean.prefetch_Title", + "descriptionKey": "Cmd_clean.prefetch_Desc", + "icon": "Broom", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Remove-Item -Path (Join-Path $env:SystemRoot 'Prefetch\\*') -Recurse -Force -ErrorAction SilentlyContinue; Write-Output 'Prefetch folder cleared.'\"", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["cleanup", "prefetch", "boot", "cache"] + }, + { + "id": "power.set.balanced", + "categoryId": "power", + "titleKey": "Cmd_power.set.balanced_Title", + "descriptionKey": "Cmd_power.set.balanced_Desc", + "icon": "PowerPlug", + "executable": "powercfg", + "argsTemplate": "/setactive 381b4222-f694-41f0-9685-ff5bb260df2e", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["power", "balanced", "plan", "scheme"] + }, + { + "id": "power.requests", + "categoryId": "power", + "titleKey": "Cmd_power.requests_Title", + "descriptionKey": "Cmd_power.requests_Desc", + "icon": "Power", + "executable": "powercfg", + "argsTemplate": "/requests", + "requiresAdmin": true, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["power", "requests", "sleep", "awake"] + }, + { + "id": "power.fastboot.off", + "categoryId": "power", + "titleKey": "Cmd_power.fastboot.off_Title", + "descriptionKey": "Cmd_power.fastboot.off_Desc", + "icon": "Power", + "executable": "reg", + "argsTemplate": "add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power\" /v HiberbootEnabled /t REG_DWORD /d 0 /f", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "power.fastboot.on", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["power", "fast startup", "hiberboot", "registry"], + "affectedRegistryValues": [ + { "path": "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", "name": "HiberbootEnabled" } + ] + }, + { + "id": "power.fastboot.on", + "categoryId": "power", + "titleKey": "Cmd_power.fastboot.on_Title", + "descriptionKey": "Cmd_power.fastboot.on_Desc", + "icon": "Power", + "executable": "reg", + "argsTemplate": "add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power\" /v HiberbootEnabled /t REG_DWORD /d 1 /f", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "power.fastboot.off", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["power", "fast startup", "hiberboot", "registry"], + "affectedRegistryValues": [ + { "path": "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", "name": "HiberbootEnabled" } + ] + }, + { + "id": "diag.taskmgr", + "executionMode": "Launch", + "categoryId": "diagnostics", + "titleKey": "Cmd_diag.taskmgr_Title", + "descriptionKey": "Cmd_diag.taskmgr_Desc", + "icon": "ChartBar", + "executable": "taskmgr", + "argsTemplate": "", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["task manager", "processes", "performance", "diagnostics"] + }, + { + "id": "diag.devmgmt", + "executionMode": "Launch", + "categoryId": "diagnostics", + "titleKey": "Cmd_diag.devmgmt_Title", + "descriptionKey": "Cmd_diag.devmgmt_Desc", + "icon": "Chip", + "executable": "devmgmt.msc", + "argsTemplate": "", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["device manager", "drivers", "hardware", "diagnostics"] + }, + { + "id": "diag.services", + "executionMode": "Launch", + "categoryId": "diagnostics", + "titleKey": "Cmd_diag.services_Title", + "descriptionKey": "Cmd_diag.services_Desc", + "icon": "FormatListChecks", + "executable": "services.msc", + "argsTemplate": "", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["services", "management", "diagnostics"] + }, + { + "id": "diag.gpresult", + "categoryId": "diagnostics", + "titleKey": "Cmd_diag.gpresult_Title", + "descriptionKey": "Cmd_diag.gpresult_Desc", + "icon": "ClipboardListOutline", + "executable": "gpresult", + "argsTemplate": "/r", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Medium", + "docUrl": null, + "tags": ["group policy", "gpresult", "rsop", "diagnostics"] + }, + { + "id": "winget.source.list", + "categoryId": "updates-packages", + "titleKey": "Cmd_winget.source.list_Title", + "descriptionKey": "Cmd_winget.source.list_Desc", + "icon": "PackageVariant", + "executable": "winget", + "argsTemplate": "source list", + "requiresAdmin": false, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["winget", "source", "list", "repositories"] + }, + { + "id": "store.reset", + "executionMode": "Launch", + "categoryId": "updates-packages", + "titleKey": "Cmd_store.reset_Title", + "descriptionKey": "Cmd_store.reset_Desc", + "icon": "PackageVariant", + "executable": "wsreset.exe", + "argsTemplate": "", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Medium", + "docUrl": null, + "tags": ["microsoft store", "reset", "cache", "wsreset"] + }, + { + "id": "sec.defender.status", + "categoryId": "security-privacy", + "titleKey": "Cmd_sec.defender.status_Title", + "descriptionKey": "Cmd_sec.defender.status_Desc", + "icon": "ShieldCheck", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Get-MpComputerStatus | Format-List AMServiceEnabled,AntivirusEnabled,RealTimeProtectionEnabled,AntivirusSignatureVersion,QuickScanAge\"", + "requiresAdmin": true, + "dangerLevel": "Safe", + "confirmBeforeRun": false, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["defender", "antivirus", "status", "security"] + }, + { + "id": "sec.defender.fullscan", + "categoryId": "security-privacy", + "titleKey": "Cmd_sec.defender.fullscan_Title", + "descriptionKey": "Cmd_sec.defender.fullscan_Desc", + "icon": "ShieldSearch", + "executable": "powershell", + "argsTemplate": "-NoProfile -Command \"Start-MpScan -ScanType FullScan\"", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Long", + "docUrl": null, + "tags": ["defender", "antivirus", "full scan", "security"] + }, + { + "id": "sec.firewall.on", + "categoryId": "security-privacy", + "titleKey": "Cmd_sec.firewall.on_Title", + "descriptionKey": "Cmd_sec.firewall.on_Desc", + "icon": "ShieldCheck", + "executable": "netsh", + "argsTemplate": "advfirewall set allprofiles state on", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "sec.firewall.off", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["firewall", "security", "enable", "network"] + }, + { + "id": "sec.firewall.off", + "categoryId": "security-privacy", + "titleKey": "Cmd_sec.firewall.off_Title", + "descriptionKey": "Cmd_sec.firewall.off_Desc", + "icon": "ShieldOff", + "executable": "netsh", + "argsTemplate": "advfirewall set allprofiles state off", + "requiresAdmin": true, + "dangerLevel": "Dangerous", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "sec.firewall.on", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["firewall", "security", "disable", "network"] + }, + { + "id": "dev.wsl.shutdown", + "categoryId": "developer", + "titleKey": "Cmd_dev.wsl.shutdown_Title", + "descriptionKey": "Cmd_dev.wsl.shutdown_Desc", + "icon": "Console", + "executable": "wsl", + "argsTemplate": "--shutdown", + "requiresAdmin": false, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": null, + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["wsl", "linux", "shutdown", "developer"] + }, + { + "id": "dev.sandbox.off", + "categoryId": "developer", + "titleKey": "Cmd_dev.sandbox.off_Title", + "descriptionKey": "Cmd_dev.sandbox.off_Desc", + "icon": "ShieldCheck", + "executable": "dism", + "argsTemplate": "/Online /Disable-Feature /FeatureName:Containers-DisposableClientVM", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "Always", + "restartRegex": null, + "revertCommandId": "dev.sandbox.on", + "estimatedDuration": "Long", + "docUrl": null, + "tags": ["windows sandbox", "feature", "disable", "developer"] + }, + { + "id": "dev.longpaths.on", + "categoryId": "developer", + "titleKey": "Cmd_dev.longpaths.on_Title", + "descriptionKey": "Cmd_dev.longpaths.on_Desc", + "icon": "FileCog", + "executable": "reg", + "argsTemplate": "add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem\" /v LongPathsEnabled /t REG_DWORD /d 1 /f", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "dev.longpaths.off", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["long paths", "filesystem", "max_path", "registry", "developer"], + "affectedRegistryValues": [ + { "path": "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem", "name": "LongPathsEnabled" } + ] + }, + { + "id": "dev.longpaths.off", + "categoryId": "developer", + "titleKey": "Cmd_dev.longpaths.off_Title", + "descriptionKey": "Cmd_dev.longpaths.off_Desc", + "icon": "FileCog", + "executable": "reg", + "argsTemplate": "add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem\" /v LongPathsEnabled /t REG_DWORD /d 0 /f", + "requiresAdmin": true, + "dangerLevel": "Caution", + "confirmBeforeRun": true, + "createsRestorePoint": false, + "restart": "No", + "restartRegex": null, + "revertCommandId": "dev.longpaths.on", + "estimatedDuration": "Short", + "docUrl": null, + "tags": ["long paths", "filesystem", "max_path", "registry", "developer"], + "affectedRegistryValues": [ + { "path": "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem", "name": "LongPathsEnabled" } + ] } ] diff --git a/src/CommandForge.Wpf/Resources/Strings.resx b/src/CommandForge.Wpf/Resources/Strings.resx index 91c6f39..f1800e0 100644 --- a/src/CommandForge.Wpf/Resources/Strings.resx +++ b/src/CommandForge.Wpf/Resources/Strings.resx @@ -1337,4 +1337,232 @@ Continue? Log folder + + Installed Updates + + + List installed Windows updates and hotfixes, newest first. + + + Installed Drivers + + + List signed device drivers with their versions and providers. + + + BIOS / Firmware Info + + + Show BIOS manufacturer, version, serial number and release date. + + + Environment Variables + + + List the current environment variables and their values. + + + Installed Programs + + + List installed programs from the registry uninstall keys. + + + Display Info + + + Show connected displays with current resolution and refresh rate. + + + Active Connections + + + Show active TCP/UDP connections and listening ports with their PIDs. + + + ARP Cache + + + Display the ARP table mapping IP addresses to MAC addresses. + + + Routing Table + + + Print the IPv4/IPv6 routing table. + + + Wi-Fi Profiles + + + List saved Wi-Fi (WLAN) network profiles. + + + WinHTTP Proxy + + + Show the system WinHTTP proxy configuration. + + + Enable Dark Mode + + + Switch apps and the system theme to dark mode. + + + Enable Light Mode + + + Switch apps and the system theme back to light mode. + + + Taskbar: Align Left (Win11) + + + Align the Windows 11 taskbar to the left and restart Explorer. + + + Taskbar: Align Center (Win11) + + + Center the Windows 11 taskbar and restart Explorer. + + + Show Seconds in Clock (Win11) + + + Show seconds in the Windows 11 taskbar clock and restart Explorer. + + + Hide Seconds in Clock (Win11) + + + Hide seconds from the Windows 11 taskbar clock and restart Explorer. + + + Clear Thumbnail Cache + + + Delete cached thumbnails and restart Explorer to rebuild them. + + + Clear Font Cache + + + Stop the Font Cache service, clear its cache and restart it. + + + Clear Prefetch + + + Empty the Windows Prefetch folder (rebuilt automatically). + + + Set Balanced Plan + + + Activate the Balanced power plan. + + + Power Requests + + + Show apps and drivers currently preventing sleep or display off. + + + Disable Fast Startup + + + Turn off Fast Startup (hybrid boot) for a full shutdown. + + + Enable Fast Startup + + + Turn on Fast Startup (hybrid boot). + + + Task Manager + + + Open Task Manager. + + + Device Manager + + + Open Device Manager. + + + Services + + + Open the Services management console. + + + Group Policy Result + + + Show the Resultant Set of Policy (RSoP) summary for this PC and user. + + + List winget Sources + + + List the configured winget package sources. + + + Reset Microsoft Store + + + Clear the Microsoft Store cache (wsreset). + + + Defender Status + + + Show Microsoft Defender protection status and signature version. + + + Defender Full Scan + + + Run a full Microsoft Defender antivirus scan (can take a while). + + + Enable Firewall + + + Turn the Windows Firewall on for all profiles. + + + Disable Firewall + + + Turn the Windows Firewall off for all profiles. This leaves the PC exposed — re-enable it as soon as possible. + + + Shut Down WSL + + + Stop all running WSL distributions and the WSL virtual machine. + + + Disable Windows Sandbox + + + Turn off the Windows Sandbox optional feature. Requires a restart. + + + Enable Long Paths + + + Enable Win32 long path (over 260 characters) support. + + + Disable Long Paths + + + Disable Win32 long path support (back to the default). + diff --git a/src/CommandForge.Wpf/Resources/Strings.vi.resx b/src/CommandForge.Wpf/Resources/Strings.vi.resx index e02bde1..d503573 100644 --- a/src/CommandForge.Wpf/Resources/Strings.vi.resx +++ b/src/CommandForge.Wpf/Resources/Strings.vi.resx @@ -1337,4 +1337,232 @@ Tiếp tục? Thư mục nhật ký + + Bản cập nhật đã cài + + + Liệt kê các bản cập nhật & hotfix Windows đã cài, mới nhất trước. + + + Driver đã cài + + + Liệt kê driver thiết bị đã ký kèm phiên bản và nhà cung cấp. + + + Thông tin BIOS / Firmware + + + Hiện hãng, phiên bản, số sê-ri và ngày phát hành BIOS. + + + Biến môi trường + + + Liệt kê các biến môi trường hiện tại và giá trị. + + + Chương trình đã cài + + + Liệt kê chương trình đã cài từ khóa Uninstall trong registry. + + + Thông tin màn hình + + + Hiện màn hình đang kết nối kèm độ phân giải và tần số quét. + + + Kết nối đang hoạt động + + + Hiện kết nối TCP/UDP và cổng đang lắng nghe kèm PID. + + + Bộ nhớ ARP + + + Hiện bảng ARP ánh xạ địa chỉ IP sang MAC. + + + Bảng định tuyến + + + In bảng định tuyến IPv4/IPv6. + + + Hồ sơ Wi-Fi + + + Liệt kê các hồ sơ mạng Wi-Fi (WLAN) đã lưu. + + + Proxy WinHTTP + + + Hiện cấu hình proxy WinHTTP của hệ thống. + + + Bật chế độ tối + + + Chuyển ứng dụng và giao diện hệ thống sang chế độ tối. + + + Bật chế độ sáng + + + Chuyển ứng dụng và giao diện hệ thống về chế độ sáng. + + + Thanh tác vụ: căn trái (Win11) + + + Căn thanh tác vụ Windows 11 về bên trái và khởi động lại Explorer. + + + Thanh tác vụ: căn giữa (Win11) + + + Căn giữa thanh tác vụ Windows 11 và khởi động lại Explorer. + + + Hiện giây trên đồng hồ (Win11) + + + Hiện giây trên đồng hồ thanh tác vụ Windows 11 và khởi động lại Explorer. + + + Ẩn giây trên đồng hồ (Win11) + + + Ẩn giây trên đồng hồ thanh tác vụ Windows 11 và khởi động lại Explorer. + + + Xóa cache ảnh thu nhỏ + + + Xóa ảnh thu nhỏ đã lưu và khởi động lại Explorer để dựng lại. + + + Xóa cache phông chữ + + + Dừng dịch vụ Font Cache, xóa cache và khởi động lại dịch vụ. + + + Xóa Prefetch + + + Làm trống thư mục Prefetch của Windows (tự dựng lại). + + + Đặt gói Cân bằng + + + Kích hoạt gói nguồn Cân bằng (Balanced). + + + Yêu cầu nguồn + + + Hiện ứng dụng/driver đang ngăn máy ngủ hoặc tắt màn hình. + + + Tắt Khởi động nhanh + + + Tắt Fast Startup (hybrid boot) để tắt máy hoàn toàn. + + + Bật Khởi động nhanh + + + Bật Fast Startup (hybrid boot). + + + Trình quản lý tác vụ + + + Mở Task Manager. + + + Trình quản lý thiết bị + + + Mở Device Manager. + + + Dịch vụ + + + Mở bảng quản lý Dịch vụ (Services). + + + Kết quả Group Policy + + + Hiện tóm tắt Resultant Set of Policy (RSoP) cho máy và người dùng này. + + + Liệt kê nguồn winget + + + Liệt kê các nguồn gói winget đã cấu hình. + + + Đặt lại Microsoft Store + + + Xóa cache Microsoft Store (wsreset). + + + Trạng thái Defender + + + Hiện trạng thái bảo vệ và phiên bản định nghĩa của Microsoft Defender. + + + Defender quét toàn bộ + + + Chạy quét toàn bộ Microsoft Defender (có thể lâu). + + + Bật tường lửa + + + Bật Windows Firewall cho mọi hồ sơ. + + + Tắt tường lửa + + + Tắt Windows Firewall cho mọi hồ sơ. Việc này khiến máy mất bảo vệ — hãy bật lại sớm nhất có thể. + + + Tắt WSL + + + Dừng mọi distro WSL đang chạy và máy ảo WSL. + + + Tắt Windows Sandbox + + + Tắt tính năng tùy chọn Windows Sandbox. Cần khởi động lại. + + + Bật đường dẫn dài + + + Bật hỗ trợ đường dẫn dài Win32 (hơn 260 ký tự). + + + Tắt đường dẫn dài + + + Tắt hỗ trợ đường dẫn dài Win32 (về mặc định). +