Skip go content

cmd.exe

Application ProcessMicrosoft Corporation

Catalog search terms cmd, command prompt, command.com

WindowsApplication

Windows Command Prompt. E dey run batch files and built-in commands. Di window na usually conhost.exe. E no be PowerShell.

Wetin you need know

Dis na Command Prompt. PowerShell na different host. conhost.exe na di window.

cmd.exe dey interpret batch and built-in commands. cmd wey dey flash during logon na script, often from Startup or vendor installer. powershell.exe no be dis file.

E safe?
Check the running file path, signature, and publisher. Name alone no fit confirm say e safe.
Same tin as powershell?
No
Why conhost?
Dat one na di console window
Feex tok say
If cmd.exe open and close during sign-in, I go check di Startup folder and Task Scheduler for .bat file. To end cmd once no go remove wetin dey trigger am.

Wetin be cmd.exe?

cmd.exe na di Windows command interpreter. command.com na di 16-bit ancestor and no be wetin current Task Manager dey show.

Wetin e dey do?

E dey run .bat and .cmd files, builtin commands, and oda exes. Di visual window na conhost.exe on current Windows.

Wetin make am dey run?

You open Command Prompt, script run, or installer use batch step. Hidden cmd.exe wit /c and download URL na command-line investigation.

Inspect the running instance

Inside Windows PowerShell, this read-only query show matching process IDs, creation times and executable paths on this PC. (pcm)

Get-CimInstance -ClassName Win32_Process | Where-Object { $_.Name -eq 'cmd.exe' } | Select-Object ProcessId, ParentProcessId, CreationDate, Name, ExecutablePath | Format-List

No result or a path we no fit access is inconclusive. Protected processes fit restrict access, and process IDs fit be reused. Keep personal paths local. (pcm)

Use the file-identity guide to compare signatures and product metadata. A filename alone no fit establish safety. (pcm)

E dey safe?

Host dey legitimate. Command line na di question

System32\cmd.exe na Windows. Safety na di parent and di /c argument. Filename mills wey dey mark every cmd.exe as risk no dey help.

Compare the recorded location with the actual file. A familiar folder alone no fit establish identity. (pcm)

C:\Windows\System32\cmd.exe

  • SysWOW64 get 32-bit cmd
  • Window host: conhost.exe
  • No be powershell.exe

I fit end am?

E dey stop dat batch

To end cmd.exe dey stop di interpreter. If task or shortcut restart am, find dat trigger.

I fit comot am?

No

No delete cmd.exe. Windows and installers still dey call am. Restrict scripts by removing di shortcut, no be di interpreter.

E suppose start with Windows?

Startup .bat na di usual auto cmd. Autoruns fit show am. cmd itself no be service.

Measure resource use

Measure the current process rather than assume a universal baseline
CPU and memory Compare several observations for the same PID and workload. This entry get no independently measured universal baseline. (pcm)
Disk and network Attribute activity to the actual process and current task; a filename alone no fit establish expected destinations or transfer volume. (pcm)

File information

cmd.exe file information
Executable name cmd.exe
Recorded installation path C:\Windows\System32\cmd.exe
Publisher Microsoft Corporation
Signature check Inspect the actual file; this entry no dey certify its certificate identity. (pcm)

Common wahala dem

Flash during logon

Enable pause inside di batch or use Autoruns. To kill cmd after e flash no dey do anything to di shortcut.

People dey confuse am wit PowerShell ISE

Different host, different profile, different policy.

How to troubleshoot

Diagnose before you change anything wey fit scatter things.

Read di full command line

Task Manager Details. /c plus Temp path na di payload.

No replace cmd.exe from any "fix"

To replace system files na malware pattern.

Technical details

Technical details
cmd.exe technical details
Image name cmd.exe
Window host conhost.exe

Check the identity of running file

A filename alone no fit establish safety. Verify the actual path, signature and product identity. (pcm)

Sources and verification

Recorded source label: August 2026. Dis label no establish independent verification. How we dey do research.

Dis article make sense to you?

Yes or no dey enough. Choose reason if you want, or add short note.

Dis article make sense to you?