Skip to content

Instantly share code, notes, and snippets.

@oropesa
Created December 31, 2019 17:39
Show Gist options
  • Save oropesa/a058c813ffb25ee696104d660cca6e5a to your computer and use it in GitHub Desktop.
Save oropesa/a058c813ffb25ee696104d660cca6e5a to your computer and use it in GitHub Desktop.
(In both Windows)
1. Go to C:\Users\{USER}\AppData\Roaming\AnyDesk
2. Copy & Paste 'thumbnails'
3. Open 'user.conf'
4. Replace the line 'ad.roster.items='
5. Done.
@MrZakwan
Copy link

Hello,
Sorry but i missed something,
in what do i replace the line ad.roster.items=

@oropesa
Copy link
Author

oropesa commented Nov 16, 2021

You should go to the previous Anydesk, open the file 'user.conf', and view the line that start with "ad.roster.items=".
Then you should copy this line, go to the new Anydesk, and replace it (only this line) in the file 'user.conf'.

@MrZakwan
Copy link

But I don't have previous anydesk, all I have is Anydesk installed on my pc, and I want to disable it from saving sessions information

@oropesa
Copy link
Author

oropesa commented Nov 29, 2021

Then your answer has no sense here. The title is "import recent session addresses".
The issue here is to import data (from a previous Anydesk) to export that data to a new computer (the next Anydesk).

In your case, you want to avoid saving session addresses, therefore if you set the file 'user.conf' as only-lecture, the session addresses cannot be saved, but I don't know the rest of consequences to do that.

@MrZakwan
Copy link

Yes sorry, I dont know what happen, but I was on a form regarding disable history saving in Anydesk

@alienmorf
Copy link

alienmorf commented Nov 30, 2021

hi) what about macOS ? can't find config((( any ideas?

need to transfer from Mac to pc

@oropesa
Copy link
Author

oropesa commented Nov 30, 2021

In command line:
> cd /Users/{USER}/.anydesk/
> ls (to see folder files)

In Mac interface:
1. Go to Home (User Home)
2. Ctrl + Shift + dot [.] (to show hidden folder)
3. Go to .anydesk

@alienmorf
Copy link

tyvm)) what about saved passwords? is it possible to migrate?))

@oropesa
Copy link
Author

oropesa commented Dec 1, 2021

The same file user.conf.

The line that start with ad.anynet.auth_tokens=

@bigbeka
Copy link

bigbeka commented Jun 1, 2022

I import Session Addresses from AnyDesk on mac os x to Windows 10 following the steps, and I had problems with some special chars followed to ';'. I solved it removing the special chars and it's working well.

Thanks for sharing it!

Thank you, this worked!
Luckily the Time Machine had the right backup and I could replace the files by just copying and pasting the user.conf file!

People, make sure to backup your backups and follow at least 3-2-1 approach!

@kuklei
Copy link

kuklei commented Dec 13, 2022

The same file user.conf.

The line that start with ad.anynet.auth_tokens=

Tried it and it does not seem to work

@bigbeka
Copy link

bigbeka commented Dec 13, 2022

@kuklei Do you have old enough backups of user.conf file?

You simply need to find old enough backup of user.conf that has connected client details and copy that to /Users/{USER}/.anydesk/

@kuklei
Copy link

kuklei commented Dec 13, 2022

@bigbeka I don't seem to have that folder at all. I was referring to the user.conf file under C:\Users{USER}\AppData\Roaming\AnyDesk

Copied the lines from the old conf for both tokens and items. The items are there in the other but tokens seem not to work.

@bigbeka
Copy link

bigbeka commented Dec 13, 2022

@kuklei I see, you are on Windows, it should be under C:\Users{USER}\AppData\Roaming\AnyDesk. I don't have experience restoring user.conf on Windows, but I believe if you copy the whole user.conf file to C:\Users{USER}\AppData\Roaming\AnyDesk path, it should restore all the data within that backup. Also try restarting the app and/or the win host.

@DavidMutenda
Copy link

It worked quite effectively for me; the only issue was forgetting to close AnyDesk before implementing the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment