We help IT Professionals succeed at work.

ATTRIB COMMAND ON FOLDERS/FILES

yostnet
yostnet asked
on
I have an infected machine that has something running that has changed the attributes of a bunch of folders and files.

Need to run -s -r -h over folders and subfolders  | is there an easy way to script this out.
Comment
Watch Question

Commented:

Select a main folder and right click mouse button. Then choose Properties.

You will see a combo small boxes and check the options you wan and after that click Apply button:

 Attributes
Then you will get:

 rh1
Select option in red rectangular and click OK. And then again OK.

This is a way how to fast enable Read only and Hidden attributes for files.
The script is too complicated and is no so fast.

Nrisimha

Author

Commented:
thx