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
splitrockitAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Alan HardistyConnect With a Mentor Co-OwnerCommented:
A simple:

attrib *.* /s -s -h

from a command prompt at the top level of the folder should be just as effective.
0
 
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
 
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
All Courses

From novice to tech pro — start learning today.