PowerShell: Set a File's Attributes
Set a Directory's Attributes
# set a dir's attributes to, make it ReadOnly (Get-Item "~/Downloads/xtest").Attributes = "Directory", "ReadOnly"
# set a dir's attribute, make it just Directory and remove all others such as ReadOnly (Get-Item "~/Downloads/xtest").Attributes = "Directory"
PowerShell. File Properties, Attributes, Permission
- PowerShell: File Properties
- PowerShell: File Attributes
- PowerShell: List All Possible File Attribute Values
- PowerShell: Show a File's Attributes
- PowerShell: Show Hidden Files
- PowerShell: List Files with Specific Attribute
- PowerShell: Set a File's Attributes
- PowerShell: Set File Read Only Attribute
- PowerShell: File Attributes Object Type
- PowerShell: Change File Owner Perm (ACL)