Powershell Tip #44: Check, Set and Remove ReadOnly attribute of a file

By | September 13, 2015

Tip: You can check, set or remove the ReadOnly attribute of a file:


Note: You can also use the FileInfo class that way:  ([System.IO.FileInfo]'C:\demo\demo.txt').IsReadOnly


Leave a Reply

Your email address will not be published.