Remove the Trojan from Allowed threats immediately so Microsoft Defender can detect and remediate it again.
1. Undo “Allow on device”
- Disconnect the PC from the Internet.
- Open Start → Windows Security → Virus & threat protection.
- Under Current threats, select Allowed threats.
- Expand Trojan:Win32/Commandrob.A!ml, then select Don’t allow.
Defender takes no action against an allowed threat; Don’t allow removes that exception so Defender can act when it encounters the file again.^1^
Do not reopen the application, restore it, or add its folder as an exclusion.
2. Update Defender and remove the detected files
- Go to Windows Security → Virus & threat protection.
- Under Virus & threat protection updates, select Protection updates → Check for updates.
- Open Protection history and expand the Trojan entry.
- Note the affected file path, then choose Remove or Quarantine if offered.
- Remove deletes the file.
- Quarantine blocks it from running.
- Do not select Restore or Allow.^2^
- Delete the original downloaded installer and its containing ZIP/RAR archive, if present. Empty the Recycle Bin.
- If the application appears under Settings → Apps → Installed apps, remove it after Defender has cleaned the threat.
Administrator privileges are required to review threat details in Protection history.^2^
3. Run full and offline scans
First run:
Windows Security → Virus & threat protection → Scan options → Full scan → Scan now
A full scan checks every file and program. After it completes, save all open work and run:
Scan options → Microsoft Defender Antivirus (offline scan) → Scan now
The computer will restart and scan outside normal Windows, where persistent malware has more difficulty hiding. After Windows restarts, review Windows Security → Virus & threat protection → Protection history for the result.^1^
If BitLocker protects the system drive, have the recovery key available before the offline scan; Microsoft documents that BitLocker might otherwise request it during the restart.^3^
4. If you ran the application
Treat accounts used on that PC as potentially exposed:
- Complete the malware scans first.
- From a known-clean device, change passwords for email, Microsoft, banking, work, and other important accounts.
- Use unique passwords and enable multifactor authentication.
- Review recent sign-ins, forwarding rules, recovery information, and financial transactions.
Microsoft recommends clearing malware before changing a compromised Microsoft account password, preventing malware on the infected PC from capturing the replacement password.^4^
If the detection returns
If the same threat reappears after reboot, repeat only the offline scan, because recurring detection can indicate a hidden component reinstalling it.^5^
If Defender reports Remediation incomplete, security settings become disabled, unknown startup items appear, or the infection continues after the offline scan:
- Back up personal documents only—not the suspicious installer or executable files.
- Use Settings → System → Recovery → Reset this PC and choose Remove everything, or reinstall Windows from installation media. Reinstallation is the appropriate fallback when malware cannot be reliably removed.^6^
- If this is an organization-managed computer, disconnect it and contact the IT/security team rather than resetting it yourself.
References
- Virus and Threat Protection in the Windows Security App | Microsoft Support
- Protection History in the Windows Security App | Microsoft Support
- Run and review the results of a Microsoft Defender Offline scan
- How to recover a hacked or compromised Microsoft account | Microsoft Support
- Troubleshoot problems with detecting and removing malware | Microsoft Support
- Recovery options in Windows | Microsoft Support