PowerShell: List Files with Specific Attribute
List files that have certain attributes
# list file or dir with attribute hidden or system dir -Attributes hidden,system
You can combine any of the following attribute properties:
ArchiveCompressedDeviceDirectoryEncryptedHiddenIntegrityStreamNormalNoScrubDataNotContentIndexedOfflineReadOnlyReparsePointSparseFileSystemTemporary
Using the following operators:
!(NOT)+(AND),(OR)
🛑 warning: No space allowed, except after comma.
# list files that have certain attributes Get-ChildItem -Attributes !Directory+!System+Encrypted, !Directory+!System+Compressed