- Sanbolic Melio
In order to have a valid disk to be managed by Melio, the disk's readonly attribute must be turned off. This can get messy when you have many disks to reset.
The following script can be used to quickly clear readonly attribute for all disks on the system. Just save the script as clear_readonly.cmd and execute it as Administrator.
::script list disk file
echo list disk >ldisk.txt
diskpart /s ldisk.txt >disks.txt
for /f "tokens=1,2,3 skip=8" %%i in (disks.txt) do call :Execute %%i %%j %%k
diskpart /s sdisk.txt >result.txt
if NOT "%3" == "No" (
echo select disk %2 >>sdisk.txt
echo attrib disk clear readonly >>sdisk.txt