T

CMD වලින් USB Virus අයින් කරන ආකාරය

35 views · updated 2026-07-01 · published 2026-07-01 · by Hasarinda Manjula · Microsoft Windows Reading time: 2 min English සිංහල

Command Prompt පාවිච්චි කරලා USB Flash Drive එකකින් Virus එකක් Remove කරන හැටි

attrib පාවිච්චි කරලා USB drive එකකින් සුලභ "shortcut virus" එකයි hidden malware attributes එකයි clear කරන්න.

Overview

"shortcut virus" එක USB drives වල ඔබේ ඇත්ත files hide කරලා ඒවා වෙනුවට shortcuts දානවා. Command Prompt එකෙන් ඒ files නැවත පෙන්නලා malicious attributes clear කරන්න පුළුවන්. මේ guide එකෙන් ඒ විදිහත්, drive එක සම්පූර්ණයෙන්ම clean කරලා protect කරන හැටිත් පෙන්නනවා.

Command Prompt එකෙන් USB virus එකක් remove කිරීම.

Warning: Command Prompt එකෙන් files un-hide කරනවා, ඒත් ඒක සම්පූර්ණ antivirus එකක් නෙවෙයි. හැම වෙලේම හොඳ antivirus scan එකකින් follow-up කරන්න, clean කරන්න කලින් වැදගත් data backup කරගන්න.

Key Takeaways

  • shortcut virus එක files hide කරලා fake shortcuts හදනවා.
  • attrib එකෙන් hidden/system/read-only flags clear කරලා files පෙන්නනවා.
  • ඊට පස්සේ full antivirus scan එකකින් follow-up කරන්න.
  • නැවත infect වීම වළක්වන්න Autorun disable කරන්න.

Step 1: attrib එකෙන් Hidden Files පෙන්නන්න

1. USB drive එක plug කරලා ඒකේ drive letter එක සටහන් කරගන්න (උදා: E:).

2. Command Prompt එක open කරන්න.

3. drive එකට switch වෙන්න: E: type කරලා Enter කරන්න.

4. මේක run කරන්න: attrib -h -s -r /s /d *.*

5. ඔබේ ඇත්ත files ආපහු එනවා; suspicious shortcut(s) සහ නාඳුනන .exe/.vbs files delete කරන්න.

Step 2: Antivirus එකකින් Scan කරන්න

1. Windows Security > Virus & threat protection > Scan options open කරන්න.

2. Custom scan තෝරලා USB drive එකට point කරන්න.

3. detect වෙන ඕනෑම දෙයක් quarantine/remove කරන්න.

Step 3: නැවත Infect වීම වළක්වන්න (Autorun Disable කරන්න)

1. Group Policy (Pro): gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > AutoPlay Policies > "Turn off Autoplay" > Enabled.

2. Settings: Settings > Bluetooth & devices > AutoPlay යටතේ AutoPlay off කරන්න.

3. මේකෙන් removable drives වලින් malware auto-run වීම නවතිනවා.

Troubleshooting

Problem: attrib කරාට පස්සෙත් files තාම hidden.

Solution: ඔබ target කළේ හරි drive letter එකද කියලයි full command එක run කළාද කියලයි confirm කරගන්න; Explorer එකේ "Show hidden items" එකත් enable කරන්න.

Problem: Virus එක නැවත නැවත එනවා.

Solution: Autorun disable කරන්න, plug කරන හැම device එකක්ම scan කරන්න, drive එක නැවත infect කරන source PC එකත් clean කරන්න.

Problem: මම format කරන්නද ඕන?

Solution: Format කිරීමෙන් virus එක remove වෙනවා (කලින් recover කරගත්ත files backup කරගන්න); මුරණ්ඩු infections වලට full format එකක් කරන්න.

Problem: Data නැති වෙලා.

Solution: files සාමාන්‍යයෙන් hide වෙලා විතරයි, delete වෙලා නෙවෙයි — attrib එකෙන් ඒවා restore කරනවා; ඇත්තටම නැති වෙලා නම් recovery software පාවිච්චි කරන්න.

Conclusion

attrib command එකෙන් shortcut virus එකෙන් hide කරපු files පෙන්නලා malicious shortcuts delete කරගන්න පුළුවන්. හැම වෙලේම full antivirus scan එකකින් follow-up කරලා නැවත infect වීම නවත්තන්න Autorun disable කරන්න — recover කරගත්ත data backup කරාට පස්සේ අන්තිම විසඳුම විදිහට drive එක format කරන්න.

Thanks for your feedback! 🙌

Read more

TechHub Assistant
Online · AI assistant
Thinking
⬇ Downloads 📦 Orders 🛒 Buy License 🎫 Create Ticket 🙋 Contact
AI-generated · may be inaccurate. Talk to a human