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:

check-set-remove-readonly-powershell

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


previous-buttonnext-button

Leave a Reply

Your email address will not be published.