diskpart select volume X remove letter=X To relock after use: WinVolumeLock