PowerShell을 사용하여 파일에서 ReadOnly 특성을 제거하는 방법? PowerShell (버전 1.0) 스크립트를 사용하여 파일에서 ReadOnly 특성을 제거하려면 어떻게해야합니까? 다음을 사용할 수 있습니다 Set-ItemProperty. Set-ItemProperty file.txt -name IsReadOnly -value $false 이하 : sp file.txt IsReadOnly $false $file = Get-Item "C:\Temp\Test.txt" if ($file.attributes -band [system.IO.FileAttributes]::ReadOnly) { $file.attributes = $file.attributes -bxor [system.IO.FileAttr..