Why are these P and U file attributes suddenly appearing?

  1.    20 Jan 2018 #1

    Why are these P and U file attributes suddenly appearing?

    All I remember for a long time of using Windows was the usual file attributes of A, R, H, S and others that would appear, but I had apps ready to control those, as I don't like irregularities in my file organisation.

    And then, when I download a zip archive for an app 48 hours ago, I get reports of strange attribute information in my unzipping tool, 7-Zip, and when unzipped, they manifest in Windows 10 as P and U attributes.

    What are these new file attributes? From what I've learned, it's part of OneDrive sharing, and I hear they stand for Pinned and Unpinned (whatever that means), but I don't want anything to do with them, so how can I get rid of them? These attributes seem to be spreading to other files that didn't have them before - I am using an SSD by itself, is it something to do with that?

    Please, Windows 10 may be a service now, but I don't want my personal files to be affected by this, especially when no apps (including Windows) can get rid of them. Can you help me?
      My ComputerSystem Spec

  2. AndreTen's Avatar
    Posts : 16,025
    Windows 10 (Pro and Insider Pro)
       21 Jan 2018 #2

    Looks like some new attributs are showing up.

    Pinned and unpinned - some explanations are saying that they prevent or allow files to be purged on low free space status.

    More Superuser

    C:\WINDOWS\system32>attrib /?
    Displays or changes file attributes.

    ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [+O | -O] [+I | -I] [+P | -P] [+U | -U]
    [drive:][path][filename] [/S [/D]] [/L]

    + Sets an attribute.
    - Clears an attribute.
    R Read-only file attribute.
    A Archive file attribute.
    S System file attribute.
    H Hidden file attribute.
    O Offline attribute.
    I Not content indexed file attribute.
    X No scrub file attribute.
    V Integrity attribute.
    P Pinned attribute.
    U Unpinned attribute.
    Specifies a file or files for attrib to process.
    /S Processes matching files in the current folder
    and all subfolders.
    /D Processes folders as well.
    /L Work on the attributes of the Symbolic Link versus
    the target of the Symbolic Link
      My ComputersSystem Spec

  3. Bree's Avatar
    Posts : 9,939
    10 Home x64 (1809) (10 Pro on 2nd pc)
       21 Jan 2018 #3

    Appears to be related to offline files. Some discussion here...
    (edit: same link as AndreTen gave earlier)

    ...There are actually more new attributes found in C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um\winnt.h:
    FILE_ATTRIBUTE_UNPINNED              = 0x00100000
    FILE_ATTRIBUTE_PINNED                = 0x00080000
    Only the last one is documented at https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx

    ...my guess is that the "Pinned" flag is used to prevent that the file is purged from local storage when running low on disk space. The "Unpinned" attribute, OTOH, seems to be used to indicate that you want to force that the file is not stored locally.I'm currently investigating how these attributes are used by the new "OneDrive Files On Demand" ...

    ...and here.

    ...Based on this, we have enough information to determine which of the three OneDrive "statuses" a file can be in:
    - online-only

    - locally available

    - always available

    Note that 3 attribute bits are involved, which should allow 8 combinations, but only 3 combinations are used (I would expect that the other 5 are not valid / supported)...
      My ComputersSystem Spec


Related Threads
I had a user complain he couldn't see (& delete) a lock file our program had created. I can find it in a command prompt, dir /ah (and NOT dir /as). In Explorer, Folder Options->View->Uncheck "Hide Protected operating System Files" which stops...
All those nice scenic Windows Spotlight images used to always appear when I turned on my computer and logged on. I have noticed over the last couple days that now one of the stock Windows login screen appears instead. My setting is set to...
Explorer shows file extensions suddenly, and can not be unchecked. Robbie
Message re. quarantined file keeps appearing! in AntiVirus, Firewalls and System Security
I use Avast which is very good indeed but over the last 3 days every time I boot up my laptop a message appears in blue box which says 'file found and quarantined' or something like that. I quickly click on the ! in the corner of box but there is no...
I have been having issues with my WD MyCloud NAS not showing up under Network on the left navigation pane of File Explorer. I am able to access the NAS by entering the host name (\\WDMYCLOUD) in the address bar in File Explorer. I was able to find a...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:25.
Find Us