34,333
edits
Changes
→Changing File Properties
</pre>
== Changing File Properties with Set-ItemProperty ==
The properties of a file are changed in Windows PowerShell using the ''Set-ItemProperty'' cmdlet together with the appropriate .NET [System.IO.FileAttributes] static member. For example, to set the ''ReadOnly'' attribute on a file: