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

2 thoughts on “Powershell Tip #44: Check, Set and Remove ReadOnly attribute of a file

  1. Pingback: Powershell Tip #43: Provide bug reports | Powershell Guru

  2. Pingback: Powershell Tip #45: Open a PowerShell console since PowerShell ISE | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *