PowerShell: Set File Attributes
Set Attributes to a File/Dir
# set attributes to a dir, make it ReadOnly (Get-Item "~/Downloads/xxt").Attributes = "Directory", "ReadOnly"
# set attribute of a dir, make it just Directory and remove all others such as ReadOnly (Get-Item "~/Downloads/xxt").Attributes = "Directory"
Get-Item
has aliasgi