Run Microsoft Defender Offline immediately; an executable with a changing name that is recreated every second should be treated as suspicious, and deleting its folder alone will not remove the process recreating it.
1. Contain and scan the PC
- Disconnect the PC from the internet and local network.
- Do not open, rename, or copy the unknown
.exe. - Save open work.
- Open Windows Security:
- Start → search for Windows Security
- Select Virus & threat protection
- Select Scan options
- Choose Microsoft Defender Offline scan
- Select Scan now
- The computer will restart and scan outside normal Windows. This can detect persistent malware that hides while Windows is running.^1^
- After Windows starts, open Windows Security → Virus & threat protection → Protection history and apply the recommended action to every detected threat.
- Reconnect to the internet, update Windows and Defender protection, and run another Full scan.
Microsoft specifically recommends Defender Offline when malware keeps returning because an undetected component may be reinstalling it.^2^
2. If the folders continue appearing
Use Microsoft Sysinternals Autoruns to locate the persistence entry:
- Download Autoruns from its official Microsoft Sysinternals page.
- Extract it, right-click Autoruns64.exe, and select Run as administrator.
- In Options, enable:
- Hide Microsoft Entries
- Verify Code Signatures
- Press F5 to refresh.
- Search for:
- The random executable name
- Its
%AppData%orAppData\Roamingpath - Entries marked File not found, Unsigned, or pointing to similarly random folders
- Check the Logon, Scheduled Tasks, Services, and WMI tabs.
- If an entry clearly points to the suspicious executable, clear its checkbox first rather than deleting it. Restart and verify whether folder creation stops.
Autoruns displays startup entries across logon locations, scheduled tasks, services, Registry locations, and other persistence mechanisms. Clearing an entry disables it without immediately deleting its configuration.^3^
Do not disable entries merely because their names are unfamiliar. Leave signed Microsoft entries hidden and investigate only entries tied to the unwanted executable or its folder.
3. Identify the recreating process if no startup entry is visible
Run Microsoft Sysinternals Process Monitor as administrator:
- Start Process Monitor and let it capture activity.
- Open Filter → Filter.
- Add a filter where Path contains the affected
AppData\Roamingfolder path, then select Include. - Clear the current events and wait for another folder or executable to appear.
- Examine the matching event’s:
- Process Name
- Image Path
- Command Line
- Parent process
- Use that information to identify the installed application, task, service, or executable responsible.
Process Monitor records real-time file-system, Registry, and process activity and supports filters and detailed process information, making it suitable for identifying which process creates the files.^4^
4. If Defender cannot remove it
- Run Defender Offline again after updating protection definitions.
- If the infection still returns or Windows Security is disabled, back up only personal documents, photos, and similar data—not executables, scripts, or the suspicious AppData folders.
- Use Settings → System → Recovery → Reset PC. Microsoft recommends reset or reinstall when malware has made changes that cannot be reversed; restore from a backup created before the infection when possible.^2^
- From a separate clean device, change passwords for accounts used on this PC, especially email, banking, and Microsoft accounts.
References