OS/Windows Server

[PowerShell] attributes 명령어

_눙이_ 2020. 12. 17. 17:16
반응형

디스크의 특성 변경 제거 명령어

 

attributes disk [{set | clear}] [readonly] [noerr]

or
attr disk
[{set | clear}] [readonly] [noerr]

 

 

set

특성 설정

clear

지정된 특성 제거

 

readonly

디스크가 읽기 전용으로 지정 합니다.

 

선택한 디스크를 읽기 전용으로 설정 하려면 다음을 입력 합니다.

attributes disk set readonly

 

선택한 디스크를 읽기 전용의 특성을 지울려면 다음을 입력 합니다

attributes disk clear readonly

 

선택된 된 디스크의 특성을 보려면 다음을 입력 합니다.

attributes disk

 

 

출처: <https://docs.microsoft.com/ko-kr/windows-server/administration/windows-commands/attributes-disk>

반응형