Driver path, registry edit

  • Is there a way to edit the registry using clone deploy scripting so it can point to a specific driver path?


    Edit DevicePath value %SystemRoot%\inf;\server\mydrivers

  • Yes you can do it with the update_registry_key function.
    update_registry_key "reg file" "key path" "new value"
    Something like this.

    mkdir /mnt/newmount
    ntfs-3g -o force,rw,remove_hiberfile ${hard_drive}2 /mnt/newmount
    update_registry_key "/mnt/newmount/Windows/System32/config/SOFTWARE" "\Microsoft\Windows\CurrentVersion\DevicePath" "%SystemRoot%\inf;\\server\mydrivers"

    Everything is case sensitive and \ is escaped for the value. You will also need to change the 2 at the end of ${hard_drive} to the correct partition number if it isn't 2.

  • Did I understand correctly that CloneDeploy CAN edit the registry of the machines it deploys? for instance when deploying a sysprep image?

    I thought this is done in a file unattend.xml on the host machine prior to imaging.

  • You can do whatever method you like. You can modify registry entries and the sysprep answer file during deployment.