I have been using clamwin to carry out scans against my windows 2008 r2 and windows 2012 servers. I am using a portable version of clamwin 0.98.1 as per the instructions found here:
https://www.clamwin.com/content/view/118/89/
I run everything through a powershell script and the particular line I use to run clamwin is as follows:
Start-Process -FilePath "clamscan.exe" -ArgumentList "C:\ -i --recursive=yes --database=C:\Users\SOMEUSER\Desktop\clamwin\db --log=C:\Users\SOMEUSER\Desktop\clamwin\log\logfile.txt" -Wait |
I am getting a large amount of "Warning: ...: Permission denied" sent to the logfile and an even larger amount sent to stdout in CMD. I was wondering if there is a way to force clamwin to open these files or at the very least, a way to suppress them? Any and all help is appreciated. Output from the logfile is below:
WARNING: Can't open file \\?\C:\pagefile.sys: Permission denied
WARNING: Can't open file \\?\C:\Users\SOMEUSER\AppData\Local\Microsoft\Windows\UsrClass.dat: Permission denied
WARNING: Can't open file \\?\C:\Users\SOMEUSER\AppData\Local\Microsoft\Windows\UsrClass.dat.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Users\SOMEUSER\AppData\Local\Microsoft\Windows\WebCache\V01.log: Permission denied
WARNING: Can't open file \\?\C:\Users\SOMEUSER\AppData\Local\Microsoft\Windows\WebCache\WebCacheV01.dat: Permission denied
WARNING: Can't open file \\?\C:\Users\SOMEUSER\NTUSER.DAT: Permission denied
WARNING: Can't open file \\?\C:\Users\SOMEUSER\ntuser.dat.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\Resources\Themes\aero\VSCache\AeroLite.msstyles_1033_96.mss: Permission denied
WARNING: Can't open file \\?\C:\Windows\ServiceProfiles\LocalService\NTUSER.DAT: Permission denied
WARNING: Can't open file \\?\C:\Windows\ServiceProfiles\LocalService\NTUSER.DAT.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\ServiceProfiles\NetworkService\NTUSER.DAT: Permission denied
WARNING: Can't open file \\?\C:\Windows\ServiceProfiles\NetworkService\NTUSER.DAT.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\catroot2\edb.log: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\catroot2\{127D0A1D-4EF2-11D1-8608-00C04FC295EE}\catdb: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\catroot2\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\catdb: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\BBI: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\BBI.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\DEFAULT: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\DEFAULT.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\RegBack\DEFAULT: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\RegBack\SAM: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\RegBack\SECURITY: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\RegBack\SOFTWARE: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\RegBack\SYSTEM: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SAM: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SAM.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SECURITY: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SECURITY.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SOFTWARE: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SOFTWARE.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SYSTEM: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\config\SYSTEM.LOG1: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\LogFiles\Sum\Current.mdb: Permission denied
WARNING: Can't open file \\?\C:\Windows\System32\LogFiles\Sum\Svc.log: Permission denied
----------- SCAN SUMMARY -----------
Known viruses: 3292416
Engine version: 0.98.1
Scanned directories: 24472
Scanned files: 124137
Infected files: 0
Data scanned: 15269.83 MB
Data read: 23372.44 MB (ratio 0.65:1)
Time: 3841.849 sec (64 m 1 s)