Get-MSSQLLinkPasswords Powershell script doesn't seem to work under SQL Server 2016
I've tested dbatools' Copy-SqlLinkedServer from SQL Server 2016 to SQL Server 2016 and SQL Server 2014 to SQL Server 2016. 

All linked servers and their respective logins were successfully migrated. 

I checked both the permissions and ensured the same login was being used. What versions are to you migrating from? What error do you get?

(I am the creator of dbatools).