Using CMD to Diagnose Incidents

Updated on November 27, 2026

Technical guide to finding the real cause of the problem #

A ticket like “my computer is freezing and I can’t access the network” usually leads to three quick answers: restart, format or replace the equipment. None of them says what is really happening. The Command Prompt (CMD) lets you investigate the cause before deciding on the solution, reducing rework and avoiding unnecessary actions such as formatting or replacing hardware when the problem is, for example, a hung process or a DNS failure.

In remote support, the traditional way to run these commands on the user’s machine is to open a full remote control session, taking over the screen, keyboard and mouse, which interrupts what the person is doing. Master Control has a CMD icon on the device management screen itself that lets you run these commands directly on the device without starting a remote control session, that is, without stopping the user. The technician runs the diagnosis, reads the command output and only escalates to a full control session if the cause found requires more complex action than CMD can handle on its own.

1. Processes and performance #

When the complaint is slowness or freezing, the first step is to understand what is consuming the machine’s resources.

tasklist
# Lista os processos em execução

taskkill /PID 1234 /F
# Encerra um processo travado pelo número do PID

systeminfo
# Informações gerais da máquina (SO, memória, tempo de atividade)

driverquery
# Lista os drivers instalados, útil para identificar driver desatualizado ou corrompido

msinfo32
# Abre o relatório completo de informações do sistema

resmon
# Abre o Monitor de Recursos, com visão em tempo real de CPU, disco, rede e memória

perfmon
# Abre o Monitor de Desempenho, útil para acompanhar métricas ao longo do tempo

CPU, memory and hung processes are the most common cause of slowness reported by users, and can usually be identified in a few minutes with tasklist and resmon.

2. System and file integrity #

Instability, random errors and recurring freezes often come from corrupted system files.

sfc /scannow
# Verifica e repara arquivos protegidos do Windows

DISM /Online /Cleanup-Image /CheckHealth
# Verifica rapidamente se a imagem do sistema tem corrupção conhecida

DISM /Online /Cleanup-Image /ScanHealth
# Faz uma varredura mais completa na imagem do sistema

DISM /Online /Cleanup-Image /RestoreHealth
# Repara a imagem do sistema usando o Windows Update como fonte

The recommended sequence is to run DISM before sfc /scannow when sfc alone does not solve it, because sfc depends on an intact system image to make its repairs.

3. Disk and storage #

Read errors, slowness when opening files and data loss usually point to the disk.

chkdsk C: /f
# Analisa e corrige erros no volume C:, pode exigir reinicialização

diskpart
# Abre o utilitário de particionamento e gerenciamento de discos

fsutil dirty query C:
# Verifica se o volume está marcado como "sujo", indicando checagem pendente

vssadmin list shadows
# Lista pontos de restauração e cópias de sombra existentes

chkdsk /f locks the volume while it runs and, on the disk where Windows is installed, usually only runs after restarting the machine. diskpart works directly on partitions; a command typed wrong there can erase data, so use it with extra care.

4. Network and connectivity #

When the problem is “I can’t access anything”, the approach is to isolate which layer is failing: local configuration, DNS or the route to the destination.

ipconfig /all
# Configuração completa de rede da máquina

ping 8.8.8.8
# Testa conectividade básica com a internet

nslookup google.com
# Testa resolução de DNS

tracert google.com
# Mostra o caminho da rede até o destino, hop a hop

pathping google.com
# Combina ping e tracert, mostrando perda de pacotes por trecho

ipconfig /release
ipconfig /renew
# Libera e renova o endereço IP obtido via DHCP

ipconfig /flushdns
# Limpa o cache de DNS local

arp -a
# Mostra a tabela de endereços MAC conhecidos na rede local

route print
# Mostra a tabela de rotas da máquina

netstat -ano
# Lista conexões ativas e o PID do processo responsável por cada uma

netsh winsock reset
netsh int ip reset
# Reconstrói o catálogo Winsock e a pilha TCP/IP, útil quando a rede
# aparece "conectada" mas nada funciona (geralmente exige reiniciar depois)

Without a network there is no access to any system that depends on it, so this is usually the most critical block to prioritize. Using netstat -ano together with tasklist /svc helps identify whether a specific process is hogging connections or ports.

5. Printing #

net stop spooler
# Para o serviço de spooler de impressão

del %windir%\System32\spool\PRINTERS\* /Q
# Limpa a fila de impressão travada

net start spooler
# Reinicia o serviço de spooler

wmic printer list brief
# Lista as impressoras instaladas e seu status básico

The del command above deletes the spool files permanently, without the Recycle Bin, so the queue is lost, not paused. It is worth noting this when guiding someone through the procedure. wmic is being deprecated by Microsoft and may not be available on newer Windows 11 installations; in those cases, Print Management (printmanagement.msc) is the alternative.

6. Cache and browser #

ipconfig /flushdns
# Limpa o cache de DNS do sistema

certutil -urlcache * delete
# Limpa o cache de URL do WinINet usado por componentes do Windows

# Para navegadores (Chrome, Edge, Firefox):
# a limpeza de cache é feita nas configurações do próprio navegador,
# não existe um comando CMD nativo que limpe o cache de terceiros

“Page not found” errors or outdated content on websites and web systems often disappear just by clearing the DNS and cache, with no deeper changes.

7. Windows services #

Many incidents are not specific to the print spooler but to any Windows service that has stopped responding.

sc query <nome_do_serviço>
# Mostra o status atual de um serviço específico

net stop <nome_do_serviço>
net start <nome_do_serviço>
# Para e inicia um serviço pelo nome

services.msc
# Abre o console gráfico de serviços do Windows

Before restarting a service, it is worth running sc query to confirm its real state; this avoids restarting something that is already running normally and masking the true cause of the incident.

8. Boot and group policies #

Useful for incidents in corporate environments, where the computer does not apply the expected settings or does not boot correctly.

gpupdate /force
# Força a reaplicação das políticas de grupo

gpresult /r
# Mostra um resumo das políticas de grupo aplicadas à máquina e ao usuário

bcdedit /enum
# Lista as entradas de configuração de inicialização

bootrec /fixmbr, bootrec /fixboot and bootrec /rebuildbcd are also part of this diagnosis, but they do not run from the normal CMD of a running Windows; they require the Windows Recovery Environment (WinRE) or the installation media, so they were not included in the direct execution list above.

Quick reference #

CategoryCommands
System / Processestasklist, taskkill, systeminfo, driverquery, msinfo32, resmon, perfmon
Software / Windowssfc /scannow, DISM /Online /Cleanup-Image /CheckHealth, /ScanHealth, /RestoreHealth
Diskchkdsk, fsutil, diskpart (careful), vssadmin list shadows
Networkipconfig /all, /flushdns, /release, /renew, ping, tracert, pathping, nslookup, arp -a, netstat -ano, route print, netsh winsock reset, netsh int ip reset
Printingnet stop/start spooler, clearing the queue, wmic printer list brief
Servicessc query, net stop/start <service>, services.msc
Boot / Policiesgpupdate /force, gpresult /r, bcdedit /enum, bootrec /* (via WinRE)

Why this matters #

CMD is not just a faster way to perform an action; it is an investigation tool. Each command above exists to answer a specific question about the state of the machine before any corrective action. Diagnosing first avoids the cycle of restarting, formatting or replacing equipment without understanding the cause, which translates directly into less rework and more tickets resolved for good on the first interaction.

Try Master Remote free for 7 days. Professional remote access with 7 integrated tools. Download Master Control →

⚠️ Was this article helpful? – If this article did not answer your question or you found outdated information, contact us through the support channels available in the apps, through our Support Center on WhatsApp or by phone: +55 17 2786-0640, option 4, or through your Customer Area.

⚠️ Images and data in this content are for illustration only. The appearance and information may vary depending on the version used.

Enjoyed the article? Check out what’s new on our WEBSITE, share the article with your friends and follow Master Remote on LinkedIn, YouTube, Instagram and Facebook. Also, explore other articles on the side and stay up to date with the latest news on customer support technology and cybersecurity.

YOU MAY ALSO BE INTERESTED IN:


Precisa resolver isso no computador de um cliente?

Com o Master Remote você acessa o PC ou o celular remotamente e resolve o problema sem sair da sua mesa.

Need to fix this on a customer’s computer?

With Master Remote you access the PC or phone remotely and solve the problem without leaving your desk.

Este artigo ajudou?

Ainda precisa de ajuda?

O suporte atende pelo WhatsApp e pelo telefone (17) 2786-0640, opção 4. Para aprender no seu ritmo, veja os vídeos da Central de Treinamento.

Still need help?

Our support team is available on WhatsApp and by phone at +55 17 2786-0640, option 4. To learn at your own pace, watch the Training Center videos.