Need help running clamav scan on Windows

Zakch93

Elite Member
Joined
Mar 7, 2020
Messages
2,307
Reaction score
855
I followed instructions from this video to install on Windows:

But when I run scan I get "can't access file" error on directory I want to scan.

By the way I want to use clamav as it was suggested by my hosting provider support to scan WP plugins and themes for malicious files.
 
I followed instructions from this video to install on Windows:

But when I run scan I get "can't access file" error on directory I want to scan.

By the way I want to use clamav as it was suggested by my hosting provider support to scan WP plugins and themes for malicious files.
Is it an administrator privelages problem?
 
Is it an administrator privelages problem?
Indeed seems so, but I've run PowerShell with admin. Don't know if onedrive is causing an issue as it's renaming my folders with "onedrive" in them, but doubt it.

The program was updated along with the documentation and usage procedure since the video.

Maybe you can have a quick look, try to run it on your own Windows and tell me if it works?

clamav.net/downloads
https://docs.clamav.net/
 
Indeed seems so, but I've run PowerShell with admin. Don't know if onedrive is causing an issue as it's renaming my folders with "onedrive" in them, but doubt it.

The program was updated along with the documentation and usage procedure since the video.

Maybe you can have a quick look, try to run it on your own Windows and tell me if it works?

clamav.net/downloads
https://docs.clamav.net/
I just ran it in a fresh internal compartment and it worked, it must be the onedrive that is the problem. Try revoking onedrive's privelages?
 
I just ran it in a fresh internal compartment and it worked, it must be the onedrive that is the problem. Try revoking onedrive's privelages?
Removed it and folders names are back to normal but it still doesn't work. Will try to reinstall it tomorrow.

Have you looked at its updated documentation? Is there a new, easier way to use it now than what's shown in the video?

Thanks for your help.
 
From what I saw installation procedure is the same. Let me know how it works when you reinstall.
 
Removed it and folders names are back to normal but it still doesn't work. Will try to reinstall it tomorrow.

Have you looked at its updated documentation? Is there a new, easier way to use it now than what's shown in the video?

Thanks for your help.
What did you type in PowerShell?
 
What did you type in PowerShell?
Exact same as in the video:
  • clamav decompressed on a folder on my dekstop
  • removed comment line from clamd.conf
  • In PowerShell: cd C:\Users\(myusername)\Desktop\clamav-0.104.0.win.x64
  • .\clamscan --recursive C:\Users\(myusername)\Desktop\scan wp plugin
Error:

C:\Users\(myusername)\Desktop\scan: No such file or directory
Warning: C:\Users\(myusername)\Desktop\clamav-0.104.0.win.x64: can't access file

Seems like a privileges problem, but I'm already running shell as admin

Edit: ok I think the spaces in the name is the problem it seems, let's see
 
Last edited:
Yes that was it, removed the space in the directory file to scan.

Thanks guys.

BTW what do you think about clamav? Know of a better alternative to scan WP plugs and themes before uploading them on sites?
 
Yes that was it, removed the space in the directory file to scan.

Thanks guys.

BTW what do you think about clamav? Know of a better alternative to scan WP plugs and themes before uploading them on sites?
Great that it worked out for you. Honestly clamav is the only one I have heard good talk about. If you hear of any others let us know
 
Back
Top