Set and remove the read-only file attribute with PowerShell – 4sysops

PHOTO EMBED

Fri Jul 08 2022 07:05:25 GMT+0000 (Coordinated Universal Time)

Saved by @pepo72 #powershell

PS> Get-ItemProperty -Path $folderPath\TestFile.txt | Select-Object IsReadOnly

IsReadOnly
----------
     False
content_copyCOPY

https://4sysops.com/archives/set-and-remove-the-read-only-file-attribute-with-powershell/