Virus Cleanup

10:26 am Uncategorized

Ran into a virus that changed all the windows attributes on all the files/folders at the root of a network share. Every file and folder had the Read Only, System, and Hidden attribute set.

I tried using “attrib -r -h -s /s /d” but for some reason it didn’t change the SYSTEM on the folders.

Final fix was:

for /f "tokens=*" %i in ('dir /b /a:d') do attrib -r -h -s "%i"

Hope this helps someone else.

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.