MSPSS: is there life after the helpdesk?

sharing solutions to uncommon IT problems

Windows 2008 R2: Change File Attribute (Temporary, Offline)

leave a comment »

in Windows 2008 R2 (or Windows 7), you may see an icon like this one:

In my case this icon meant that the file had two attributes set: Temporary and Offline (never heard of them before). In the details page of the file properties they appear as TO.

It took me a while to find a quick, reliable solution which would fix these attributes in all files and subfolders.

Download this command line tool:
and run this command:

attr.exe -t- -o- -R –dry-run *.* (this returns a list of the files that have offline and temporary attributes set)
Once you made sure you got the right list of files, remove the –dry-run to actually change the attributes.
attr.exe -t- -o- -R *.*

Hope this helps.


Written by zantoro

August 7, 2012 at 2:09 pm

Posted in Windows Server

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: