Modify the registry

  
under the Windows command line

reg add "HKLM\\system\\currentcontrolset\\control\\storagedevicepolicies" /v writeprotect /t reg_dword /d 1 /f/v Set the key name (value) /t Set the data type ( value (data) type) /d is set to add /f represents mandatory (forbidden)



Copyright © Windows knowledge All Rights Reserved