Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

Files Attributes Changed after virus

Attributes on shared files on a server were changed after virus infection. They have read only and system attributes. How can I change them back to allow users to access and write to these files?

Thanks,
SR
0
splitrockit
Asked:
splitrockit
  • 2
  • 2
1 Solution
 
Joseph DalyCommented:
Are they set to hidden and system? If so we had that same virus and this powershell script should help you out.

gci \\server\share -force | foreach {$name = $_.name
$name = "\\server\share\$name"
attrib $name -s -h}

This will take a main path and the iterate through all files and folders removing the hidden and system attributes.
0
 
Alan HardistyCo-OwnerCommented:
A simple:

attrib *.* /s -s -h

from a command prompt at the top level of the folder should be just as effective.
0
 
splitrockitAuthor Commented:
I have some roaming profiles that are set to read only. I have run the commands listed. They still remain read only. I have full ownership of the files. If I change them manually it shows the command run. But the file still remains read only. Any suggestions?

Thanks,
SR
0
 
Alan HardistyCo-OwnerCommented:
Are the users logged in and thus using the profiles when you are running the command or logged out and not using the profiles?
0
 
splitrockitAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now