Share via

Virus Scanning USB

Anonymous
2020-10-29T18:30:59+00:00

Hi, hope someone can help with this wee question; my laptop is Windows 10s, and I want to transfer some photos to my laptop from a USB flash drive, to share with family. Ideally, I'd like virus scanning to run automatically as soon as I plug in the USB, but from what I have read, it looks as if you need to manually do this. Any help would be very much appreciated, thanks in advance :-)

Windows for home | Windows 10 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Rob Koch 25,875 Reputation points Volunteer Moderator
    2020-10-30T02:47:12+00:00

    Hi, hope someone can help with this wee question; my laptop is Windows 10s, and I want to transfer some photos to my laptop from a USB flash drive, to share with family. Ideally, I'd like virus scanning to run automatically as soon as I plug in the USB, but from what I have read, it looks as if you need to manually do this. Any help would be very much appreciated, thanks in advance :-)

    If I reading correctly and you didn't just make a slip-up while typing, you've indicated "may laptop is Windows 10s", by which I assume you actually mean Windows 10 running in S mode, since Microsoft dropped the original Windows 10s version about 2 years  ago.

    What is Windows 10 in S Mode?

    What this implies is that neither the command prompt nor the PowerShell command mentioned would be available, since as the following paragraph from that article states, S mode can't use command-line shells, since those are one of the most popular methods used by malware to subvert a system.

    "Windows 10 in S Mode can’t use command-line shells like PowerShell, Command Prompt, or Bash, either. Various other developer tools are also off limits. You don’t have direct access to the Windows Registry via the Registry Editor, either."

    However, on the other hand, that's also the reason that what you're requesting relating to scanning the USB really isn't necessary, since unlike legacy desktop Windows, Windows 10 in S mode isn't susceptible to any of the malware that's traditionally delivered via USB drives and Autoruns,  The reason for this is that what Autoruns is typically used to invoke is some sort of executable file including exe or script, but since Windows 10 S mode won't allow these to launch and in fact won't even allow them to be downloaded to the local file system, it's not possible to infect an S mode based Windows in this manner.

    There's a potential weird side effect here though that I'd never before needed to consider, since I have one of these Windows 10 S mode systems myself running on an original installation Microsoft Surface Go tablet.  The possible issue is that I'm not certain the S mode version of Windows Defender can actually detect many of the millions of malware that affect other legacy Windows operating systems, since there's no need for these to be detected to protect a Windows 10 S mode operating system, as there's no way they can truly execute and infect it in the first place.

    Now there were only a handful of GDI-Plus based modifications that could affect some very old versions of Windows back in the Windows XP days if I recall correctly, but since these wouldn't affect either Windows 10 (any version) or others since Vista, those shouldn't matter anyway.

    Since in general Windows S mode wouldn't allow you to even copy an executable file to the local system, that should avoid your being able to transfer one into whatever storage you use to share those pictures.  However, in theory it's possible you might manage to copy some old picture containing a GDI-Plus modification, though again, without the associated executable file or script that would typically be intended to run, that's fundamentally a dead end as well.

    So the conclusion I'm coming to here is that despite you can't do what you wanted to with Windows 10 S mode, it truly doesn't matter, since none of the malware you're concerned about should ever manage to operate on that laptop due to S mode and since it should also result in blocking the copy of any executable to the share, it's unlikely you'd manage to pass anything of concern on to others through that system as well.

    FYI, I used the EICAR test file, copying that (fake) virus executable file and even a ZIP containing it as well to my Surface Go and it alerted immediately.  Refusing at first to allow the download via the new Chromium based Edge browser using SmartScreen and then after I purposefully disabled that, Windows Defender antivirus alerted and blocked the executable file itself.

    Rob

    8 people found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-10-31T21:29:03+00:00

    Hello Juan,

    Thank you for clarifying this. I had difficulty executing the command, which has probably been my error in not being clear enough in my original post that my laptop is running Windows 10 S-mode, rather that Windows 10s, which I didn't know was a different thing and which another responder has alerted me to, so apologies if there was any confusion with the way I worded my original question. Many thanks for your help, I look forward to learning more about the world of Microsoft from you all :-).

    0 comments No comments
  2. Anonymous
    2020-10-30T14:23:22+00:00

    Yes, you need to run this command before connecting the usb, if normally it should notify you in the lower right corner when scanning and cleaning. It depends on where you have the bar

    0 comments No comments
  3. Anonymous
    2020-10-29T19:33:19+00:00

    Hello Juan, thank you very much for your reply, I will try this later and will let you know how I get on. If I could possibly add a further few small questions...….

    Do I run this command before plugging in the USB? Also, would I need to do this every time I want to plug in a flash drive, or will the setting remain active and scan automatically in future? Lastly, will something appear on my screen to show that it is scanning/has scanned and no viruses etc?

    0 comments No comments
  4. Anonymous
    2020-10-29T18:47:42+00:00

    Hello Cosmic, I will be happy to help you solve this problem.

    We could try to follow the next step, to make windows defender analyze the external devices that connect to your pc.

    We open a Run window, Win + R. We write CMD and press Enter or OK. In front of the command line we write Set-MpPreference -DisableRemovableDriveScanning 0 and press Enter. This will activate the Windows Defender feature to scan external storage devices connected to the computer.

    I hope I can help you, follow the steps. I will be waiting here

    0 comments No comments