Displays, sets, or clears disk attributes for the selected disk. Syntax: ATTRIBUTES DISK SET | CLEAR READONLY NOERR SET Sets ...

    Displays, sets, or clears disk attributes for the selected disk.

Syntax:  ATTRIBUTES DISK [SET | CLEAR] [READONLY] [NOERR]

    SET         Sets the specified attribute for the selected disk.

    CLEAR       Clears the specified attribute for the selected disk.

    READONLY    Specifies that the disk is read-only.

    NOERR       For scripting only. When an error is encountered, DiskPart
                continues to process commands as if the error did not occur.
                Without the NOERR parameter, an error causes DiskPart to exit
                with an error code.

    This command allows the user to set, clear, or display the attributes 
    for a disk. When called with no parameters, this command  displays the 
    current disk flags. READONLY is currently the only disk flag that may 
    be changed. The BOOT DISK attribute denotes the disk used to boot. 
    For a dynamic mirrored volume, the BOOT DISK attribute is 
    displayed for the disk containing the boot plex of the mirrored boot 
    volume.

Examples:

To display the attributes on the selected disk, type:
ATTRIBUTES DISK

To set the attribute for the selected disk as read-only, type:
ATTRIBUTES DISK SET READONLY

To clear the read-only attribute for the selected disk, type:
ATTRIBUTES DISK CLEAR READONLY
English
English (United States)
Deutsch (Deutschland)
German (Germany)
Español (España)
Spanish (Spain)
italiano
Italian
日本語
Japanese
한국어
Korean
Português
Portuguese
Русский
Russian