Hi @Zhu, Ligong
The right registry is the first one. Please refer to this policy: DownloadDirectory. It configures the directory to use when downloading files in Edge.
If you set an invalid path, Microsoft Edge will default to the user's default download directory.
For the issue that the downloaded file now is saved into default location, please check if the path you set is valid. See https://go.microsoft.com/fwlink/?linkid=2095041 for a list of variables that can be used.
For the right way to update it using Windows reg tool, do you use Command Prompt to edit the registry? If so, you can refer to reg add to update the registry. You can also refer to my sample command line which change the download path to E:\download:
reg add HKLM\SOFTWARE\Policies\Microsoft\Edge /t REG_SZ /v DownloadDirectory /d E:\download /f
After the operation completed successfully, you can run gpupdate /force
to make the registry take effect immediately.
After you applied the registry successfully, you can open edge://policy/ and you'll find a result like this:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou