Recovering a Windows Account After a Trojan Changes Its Password
A trojan that resets a Windows password can leave you locked out of your own files, settings, and administrator tools. The change may be deliberate, or it may result from the malware creating a new account, altering security policies, or interfering with Microsoft account synchronisation.
The safest response is to treat the computer as compromised rather than assuming that changing the password alone will solve the problem. Disconnecting the device, protecting other accounts, and preserving useful evidence should happen before extensive cleanup.
These steps apply to Windows 10 and Windows 11 computers used at home, in small businesses, and in larger workplaces across Australia. If the device contains tax records, client information, health documents, or business data, recovery should be handled carefully to avoid destroying evidence or spreading the infection.
Isolate The Computer First
Disconnect the affected PC from Wi-Fi and unplug its Ethernet cable. Do not reconnect it simply to test a new password. A remote-access trojan may still be active and could capture replacement credentials, contact a command-and-control server, or move to another computer on the same home network.
Use a clean phone or another trusted computer to change important passwords. Prioritise email, Microsoft, banking, cloud storage, payroll, and social media accounts. Australian users should also check myGov, Medicare-linked services, and online banking access if those credentials may have been typed on the infected computer.
Contact your bank immediately if suspicious transactions, new payees, or unusual card activity appear. Scamwatch is a useful Australian source for reporting scams and reviewing recovery guidance, while businesses may need to notify customers or regulators if personal information has been exposed.
Identify The Account And Recovery Route
First determine whether Windows is using a local account or a Microsoft account. A Microsoft account normally uses an email address and may offer an online password reset. A local account exists only on that computer, so recovery depends on another administrator account, previously created security questions, or a legitimate password reset disk.
At the sign-in screen, check for other available users and select Sign-in options. Avoid repeated guessing, as account lockout policies may lengthen the delay. If a Microsoft account password was changed by an attacker, reset it from a clean device, review recent sign-in activity, remove unfamiliar recovery addresses, and revoke unknown sessions.
If no administrator account is available, use official Windows recovery tools rather than random “unlocker” programs. Untrusted password utilities can contain another trojan, damage the profile, or expose saved files. In a workplace, contact the IT administrator before attempting repairs, particularly where device management or domain policies are involved.
Use Safe Recovery And Malware Scanning
If you regain access, start Windows in Safe Mode with Networking only when a trusted security tool requires internet access. Safe Mode loads fewer drivers and startup programs, which can prevent some malware from launching. Run Microsoft Defender Offline or a reputable, updated anti-malware scanner, then inspect startup entries, scheduled tasks, browser extensions, and recently installed applications.
Do not open suspicious Word or Excel documents to check whether they are damaged. Malware sometimes inserts fake warnings that encourage users to enable macros or download a “repair” tool; these fake document errors can be part of the infection chain.
| Recovery situation |
Safer next step |
Main risk |
| Microsoft account password changed |
Reset it from a clean device and review sessions |
Attacker retains access through recovery methods |
| Local account locked out |
Use another administrator or official recovery options |
Unverified tools may steal data |
| Unknown administrator account appears |
Disconnect the PC and scan before deleting it |
Removing evidence can hinder investigation |
| Files are encrypted or renamed |
Preserve affected files and identify the malware |
Premature cleanup may remove recovery clues |
| Work computer is affected |
Notify IT or the managed service provider |
Spreading the compromise across the network |
If files have been encrypted, avoid paying immediately or deleting ransom notes. Photograph or copy the note, record changed file extensions, and preserve a sample of affected files. For a separate ransomware incident, review this ransomware removal guide for general safety and identification principles.
Check For Persistence And Unauthorised Changes
After scanning, review local users under Settings or Computer Management. Look for unfamiliar administrator accounts, changed group membership, new remote desktop access, and altered password policies. Also inspect Windows Security history, Defender exclusions, firewall rules, scheduled tasks, services, and startup folders.
A trojan may modify the hosts file, proxy settings, DNS configuration, or browser policies. Restore only settings you understand. Check browsers for unknown extensions and remove saved payment details if the computer was used for shopping, banking, or everyday services such as Australia Post and utility accounts.
Be cautious of pop-ups claiming that Windows has detected a critical problem. Attackers can imitate system messages to make users click, call a fake support number, or install remote-control software. This guidance on fake system notifications explains why those alerts should be treated as suspicious.
Preserve Files And Decide Whether To Reinstall
If the account can be recovered and scans are clean, copy essential documents to a separate drive using a trusted, updated system. Do not copy executable files, cracked software, scripts, or unknown browser extensions. Scan the backup before opening it on another device.
A clean reinstall is often the most reliable option when a trojan had administrator privileges, disabled security software, installed remote-access tools, or changed several system settings. Before formatting, confirm that important files are backed up and that you have licence details, BitLocker recovery keys, and access to Microsoft account authentication methods.
For business computers in Sydney, Melbourne, Brisbane, or regional offices, coordinate the rebuild with the organisation’s IT team. Australian businesses commonly align basic security controls with the Australian Cyber Security Centre’s Essential Eight, including patching, multi-factor authentication, application control, and regular backups.
Secure The Account After Recovery
Create a long, unique password and enable multi-factor authentication, preferably with an authenticator app or security key. Remove unknown devices and sessions from Microsoft and email accounts, check forwarding rules, and confirm that recovery phone numbers and addresses belong to you.
Install Windows updates, update browsers and applications, and keep Defender or another reputable security product enabled. Turn on controlled folder access where appropriate, use a standard account for daily work, and keep an offline or versioned backup. Regular backups are especially valuable for Australian households that rely on a single laptop for work, study, banking, and government services.
- Use a clean device to change every password exposed during the incident.
- Enable multi-factor authentication on email, Microsoft, banking, and cloud accounts.
- Remove unfamiliar users, recovery methods, sessions, extensions, and remote-access tools.
- Preserve encrypted files and ransom notes before attempting recovery.
- Reinstall Windows when malware had administrator access or cannot be confidently removed.