@@ -329,22 +329,22 @@ const mestreTools = {
329329 command : 'Clear-RecycleBin -Force -ErrorAction SilentlyContinue; Write-Host "✅ Lixeira esvaziada!" -ForegroundColor Green' ,
330330 } ,
331331 limpar_cache_windows_update : {
332- id : "limpar_cache_windows_update " ,
332+ id : "limpar_cache_do_windows_update " ,
333333 description : "Limpa o cache do Windows Update paralisando e reiniciando o serviço." ,
334334 command : 'Stop-Service wuauserv -Force; Remove-Item "C:\\Windows\\SoftwareDistribution\\Download\\*" -Recurse -Force -EA 0; Start-Service wuauserv; Write-Host "✅ Cache WU limpo!" -ForegroundColor Green' ,
335335 } ,
336336 limpar_logs_event_viewer : {
337- id : "limpar_logs_event_viewer " ,
337+ id : "limpar_eventviewer_logs " ,
338338 description : "Limpa todos os logs do Event Viewer do Windows." ,
339339 command : 'Get-EventLog -List | ForEach-Object { Clear-EventLog -LogName $_.Log -EA 0 }; Write-Host "✅ Logs de eventos limpos!" -ForegroundColor Green' ,
340340 } ,
341341 limpar_cache_thumbnail : {
342- id : "limpar_cache_thumbnail " ,
342+ id : "limpar_thumbnail_cache " ,
343343 description : "Limpa o cache de miniaturas (thumbnails) do Windows." ,
344344 command : 'ie4uinit.exe -show; Remove-Item "$env:LOCALAPPDATA\\Microsoft\\Windows\\Explorer\\thumbcache_*" -Force -EA 0; Write-Host "✅ Thumbnail cache limpo!" -ForegroundColor Green' ,
345345 } ,
346346 liberar_memoria_ram : {
347- id : "liberar_memoria_ram " ,
347+ id : "liberar_memoria_ram_imediatamente " ,
348348 description : "Tenta liberar a memória RAM imediatamente usando o Garbage Collector do .NET." ,
349349 command : '[System.GC]::Collect(); [System.GC]::WaitForPendingFinalizers(); Write-Host "✅ RAM liberada!" -ForegroundColor Green' ,
350350 } ,
@@ -354,7 +354,7 @@ const mestreTools = {
354354 command : '$ram = Get-WmiObject Win32_OperatingSystem; $livre = [math]::Round($ram.FreePhysicalMemory/1MB,2); $total = [math]::Round($ram.TotalVisibleMemorySize/1MB,2); Write-Host "RAM Livre: $livre GB de $total GB"' ,
355355 } ,
356356 listar_processos_alto_consumo_ram : {
357- id : "listar_processos_alto_consumo_ram " ,
357+ id : "listar_processos_por_uso_de_ram " ,
358358 description : "Lista os 15 processos que mais estão consumindo memória RAM no momento." ,
359359 command : 'Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 15 Name,@{N="RAM(MB)";E={[math]::Round($_.WorkingSet64/1MB,2)}} | Format-Table -AutoSize' ,
360360 } ,
@@ -374,42 +374,42 @@ const mestreTools = {
374374 command : 'Set-Service -Name "{{NOME_SERVICO}}" -StartupType Disabled -EA 0; Stop-Service -Name "{{NOME_SERVICO}}" -Force -EA 0; if ($?) { Write-Host "✅ Serviço {{NOME_SERVICO}} desativado!" -ForegroundColor Green } else { Write-Host "⚠️ Serviço {{NOME_SERVICO}} não encontrado." -ForegroundColor Yellow }' ,
375375 } ,
376376 verificar_espaco_disco : {
377- id : "verificar_espaco_disco " ,
377+ id : "verificar_espaco_em_disco " ,
378378 description : "Verifica e retorna o espaço usado, livre e total de todos os discos." ,
379379 command : 'Get-PSDrive -PSProvider FileSystem | Select-Object Name,@{N="Usado(GB)";E={[math]::Round(($_.Used/1GB),2)}},@{N="Livre(GB)";E={[math]::Round(($_.Free/1GB),2)}},@{N="Total(GB)";E={[math]::Round((($_.Used+$_.Free)/1GB),2)}} | Format-Table -AutoSize' ,
380380 } ,
381381 verificar_saude_disco : {
382- id : "verificar_saude_disco " ,
382+ id : "verificar_saude_do_disco_smart " ,
383383 description : "Verifica a saúde do disco (S.M.A.R.T.)." ,
384384 command : "Get-WmiObject -Namespace root/wmi -Class MSStorageDriver_FailurePredictStatus | Select-Object PredictFailure,Reason | Format-Table -AutoSize" ,
385385 } ,
386386 diagnostico_rede : {
387- id : "diagnostico_rede " ,
387+ id : "diagnostico_de_rede_completo " ,
388388 description : "Faz um diagnóstico mostrando informações completas da rede (ipconfig /all)." ,
389389 command : "ipconfig /all" ,
390390 } ,
391391 renovar_ip : {
392- id : "renovar_ip " ,
392+ id : "flush_e_renovar_ip " ,
393393 description : "Faz o flush do DNS e renova o endereço IP da máquina." ,
394394 command : 'ipconfig /flushdns; ipconfig /release; ipconfig /renew; Write-Host "✅ IP renovado!" -ForegroundColor Green' ,
395395 } ,
396396 reparar_arquivos_sfc : {
397- id : "reparar_arquivos_sfc " ,
397+ id : "sfc_scan_reparo_de_arquivos " ,
398398 description : "Executa o sfc /scannow para reparar arquivos corrompidos do sistema." ,
399399 command : "sfc /scannow" ,
400400 } ,
401401 reparar_imagem_dism : {
402- id : "reparar_imagem_dism " ,
402+ id : "dism_restaurar_saude " ,
403403 description : "Executa a restauração da imagem do Windows (DISM /RestoreHealth)." ,
404404 command : "DISM /Online /Cleanup-Image /RestoreHealth" ,
405405 } ,
406406 verificar_informacoes_sistema : {
407- id : "verificar_informacoes_sistema " ,
407+ id : "informacoes_do_sistema " ,
408408 description : "Lista o nome do produto Windows, arquitetura, nome do PC, Processador e Memória total." ,
409409 command : "Get-ComputerInfo | Select-Object WindowsProductName,WindowsVersion,OsArchitecture,CsName,CsProcessors,CsTotalPhysicalMemory | Format-List" ,
410410 } ,
411411 verificar_temperatura_cpu : {
412- id : "verificar_temperatura_cpu " ,
412+ id : "temperatura_do_cpu_wmi " ,
413413 description : "Tenta obter a temperatura da CPU via WMI." ,
414414 command : 'Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi" | ForEach-Object { Write-Host "Zona: $($_.InstanceName) -> $(($_.CurrentTemperature - 2732)/10)°C" }' ,
415415 } ,
@@ -419,12 +419,12 @@ const mestreTools = {
419419 command : 'Write-Host "===== DIAGNÓSTICO COMPLETO =====" -ForegroundColor Cyan; Write-Host ""; Write-Host "--- RAM ---" -ForegroundColor Yellow; $ram = Get-WmiObject Win32_OperatingSystem; $livre = [math]::Round($ram.FreePhysicalMemory/1MB,2); $total = [math]::Round($ram.TotalVisibleMemorySize/1MB,2); Write-Host "RAM Livre: $livre GB de $total GB"; Write-Host ""; Write-Host "--- DISCO ---" -ForegroundColor Yellow; Get-PSDrive -PSProvider FileSystem | Select-Object Name,@{N="Usado(GB)";E={[math]::Round(($_.Used/1GB),2)}},@{N="Livre(GB)";E={[math]::Round(($_.Free/1GB),2)}} | Format-Table -AutoSize; Write-Host "--- TOP 10 PROCESSOS (RAM) ---" -ForegroundColor Yellow; Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 10 Name,@{N="RAM(MB)";E={[math]::Round($_.WorkingSet64/1MB,2)}} | Format-Table -AutoSize; Write-Host "--- REDE ---" -ForegroundColor Yellow; Test-Connection 8.8.8.8 -Count 1 -Quiet | ForEach-Object { if($_){Write-Host "Internet: OK" -ForegroundColor Green}else{Write-Host "Internet: SEM CONEXÃO" -ForegroundColor Red} }' ,
420420 } ,
421421 relatorio_rapido_pc : {
422- id : "relatorio_rapido_pc " ,
422+ id : "relatorio_rapido_do_pc " ,
423423 description : "Gera um relatório rápido do PC com Windows, uptime, RAM, disco C, top 10 processos e internet." ,
424424 command : `Write-Host "===== RELATORIO RAPIDO DO PC =====" -ForegroundColor Cyan; $os=Get-WmiObject Win32_OperatingSystem; $cpu=Get-WmiObject Win32_Processor | Select-Object -First 1; $disk=Get-PSDrive C; $ramLivre=[math]::Round($os.FreePhysicalMemory/1MB,2); $ramTotal=[math]::Round($os.TotalVisibleMemorySize/1MB,2); $diskLivre=[math]::Round($disk.Free/1GB,2); $diskTotal=[math]::Round(($disk.Used+$disk.Free)/1GB,2); $boot=[Management.ManagementDateTimeConverter]::ToDateTime($os.LastBootUpTime); $uptime=New-TimeSpan -Start $boot -End (Get-Date); Write-Host "Computador: $env:COMPUTERNAME"; Write-Host "Windows: $($os.Caption) Build $($os.BuildNumber)"; Write-Host "CPU: $($cpu.Name)"; Write-Host "RAM: $ramLivre GB livre de $ramTotal GB"; Write-Host "Disco C: $diskLivre GB livre de $diskTotal GB"; Write-Host "Uptime: $($uptime.Days)d $($uptime.Hours)h"; Write-Host ""; Write-Host "Top 10 processos por RAM:" -ForegroundColor Yellow; Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 10 Name,@{N="RAM(MB)";E={[math]::Round($_.WorkingSet64/1MB,2)}} | Format-Table -AutoSize; Write-Host ""; if(Test-Connection 8.8.8.8 -Count 1 -Quiet){Write-Host "Internet: OK" -ForegroundColor Green}else{Write-Host "Internet: SEM CONEXAO" -ForegroundColor Red}` ,
425425 } ,
426426 exportar_diagnostico : {
427- id : "exportar_diagnostico " ,
427+ id : "exportar_diagnostico_para_logs " ,
428428 description : "Exporta um diagnóstico rápido para a pasta logs com nome diagnostico-YYYYMMDD-HHMMSS.txt." ,
429429 command : `$project=$env:MESTRE_PROJETO_PATH; $logDir=Join-Path $project "logs"; New-Item -ItemType Directory -Force -Path $logDir | Out-Null; $file=Join-Path $logDir ("diagnostico-"+(Get-Date -Format "yyyyMMdd-HHmmss")+".txt"); $os=Get-WmiObject Win32_OperatingSystem; $disk=Get-PSDrive C; $top=Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 10 Name,@{N="RAM(MB)";E={[math]::Round($_.WorkingSet64/1MB,2)}} | Out-String; @("===== DIAGNOSTICO MESTRE DO PC =====","Data: $(Get-Date)","Computador: $env:COMPUTERNAME","Windows: $($os.Caption) Build $($os.BuildNumber)","RAM livre GB: $([math]::Round($os.FreePhysicalMemory/1MB,2))","Disco C livre GB: $([math]::Round($disk.Free/1GB,2))","",$top) | Set-Content -Path $file -Encoding UTF8; Write-Host "Diagnostico salvo em: $file" -ForegroundColor Green` ,
430430 } ,
@@ -439,27 +439,27 @@ const mestreTools = {
439439 command : `$project=$env:MESTRE_PROJETO_PATH; $logDir=Join-Path $project "logs"; New-Item -ItemType Directory -Force -Path $logDir | Out-Null; Start-Process $logDir; Write-Host "Pasta de logs aberta: $logDir" -ForegroundColor Green` ,
440440 } ,
441441 ver_tarefas_mestre : {
442- id : "ver_tarefas_mestre " ,
442+ id : "ver_tarefas_mestredopc " ,
443443 description : "Lista as tarefas agendadas MestreDoPC_Admin_Launcher e MestreDoPC_Startup, quando existirem." ,
444444 command : `$names=@("MestreDoPC_Admin_Launcher","MestreDoPC_Startup"); $rows=foreach($name in $names){ $task=Get-ScheduledTask -TaskName $name -ErrorAction SilentlyContinue; if($task){ $info=Get-ScheduledTaskInfo -TaskName $name -ErrorAction SilentlyContinue; [pscustomobject]@{Task=$name;State=$task.State;LastRun=$info.LastRunTime;LastResult=$info.LastTaskResult;NextRun=$info.NextRunTime} } else { [pscustomobject]@{Task=$name;State="Nao encontrada";LastRun="";LastResult="";NextRun=""} } }; $rows | Format-Table -AutoSize` ,
445445 } ,
446446 git_status : {
447- id : "git_status " ,
447+ id : "git_status_do_projeto " ,
448448 description : "Executa 'git status' na pasta do projeto." ,
449449 command : `Set-Location -LiteralPath $env:MESTRE_PROJETO_PATH; git status` ,
450450 } ,
451451 git_pull : {
452- id : "git_pull " ,
452+ id : "git_pull_atualizar_local " ,
453453 description : "Executa 'git pull' na pasta do projeto." ,
454454 command : `Set-Location -LiteralPath $env:MESTRE_PROJETO_PATH; git pull; Write-Host "\u2705 Repositório atualizado!" -ForegroundColor Green` ,
455455 } ,
456456 verificar_defender : {
457- id : "verificar_defender " ,
457+ id : "verificar_status_do_windows_defender " ,
458458 description : "Verifica o status do Windows Defender." ,
459459 command : "Get-MpComputerStatus | Select-Object AMRunningMode,AntivirusEnabled,RealTimeProtectionEnabled,AntivirusSignatureLastUpdated | Format-List" ,
460460 } ,
461461 scan_defender_rapido : {
462- id : "scan_defender_rapido " ,
462+ id : "scan_rapido_com_defender " ,
463463 description : "Executa um scan rápido no Defender." ,
464464 command : 'Start-MpScan -ScanType QuickScan; Write-Host "✅ Scan rápido iniciado!" -ForegroundColor Green' ,
465465 } ,
0 commit comments