Would you like to co-innovate with us? If so, we’d like to invite you to become product development partners with us. Read more about it in our announcement Launch of the TeamViewer User Focus Program3>
Hello Guys and Girls,
sooo, the question is how to make it happen, the state im in is as follows: I created an script that will first save the client ID from the registry
Dim CurrenTeamViewerID, oFile, oShell, oFSO
Const forwriting = 2
Const strFolder = "E:\Deployment\"
Const strFileName = "E:\Deployment\teamviewerID.txt"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("Wscript.shell")
If Not oFSO.FolderExists(strFolder) Then
CurrenTeamViewerID = oShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TeamViewer\ClientID")
Set oFile = oFSO.createtextfile(strFileName, forwriting)
After the installation finishes (the E drive is not formated so the file persists) there is another script which restores the ID into the registry:
Dim oFSO, oShell, oFile, strTeamViewerID
Const forreading = 1
Const Filename = "E:\deployment\teamviewerID.txt"
Set oFSO = WScript.CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("wscript.shell")
If oFSO.FileExists(Filename) Then
set oFile = oFSO.opentextfile(Filename, forreading)
strTeamViewerID = oFile.readline
strTeamViewerID = left(strTeamViewerID, 9)
oShell.regwrite("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TeamViewer\ClientID", strTeamViewerID, "REG_DWORD")
Somehow this does not work, after the isntallation, when i start teamviewer, it gets another ID, how to prevent this?
I'm afraid it's not possible to change or restore a TeamViewer ID using the registry. The ID itself is generated using an advanced algorithm that takes into account various unique hardware and software identifiers from the computer, one of which being the operating system itself. That means if you upgrade or reinstall the operating system, you might end up with a new TeamViewer ID. If that happens, it's not possible to revert back to the previous ID at all.
The "ClientID" value in the registry is only there as a reference; it's not used to actually determine or change the ID.
and is it soemhow not possible to workaround this? Like with exporting the settings (dont know if they have the ID inside) Seeting all the values manualy for the algorythm to create the same ID again? There must be a way :D
Thanks for your time
I'm afraid there is literally no way to avoid that. Exporting the settings from the registry wouldn't help, as the ID is not based on any setting in the registry.
There are quite a number of unique hardware and software identifiers that are used to generate the ID, and most of them can't be manually changed. We also do not provide a list of them for security reasons.
sad to hear that, but hanks for your time, ill try to cook something up :D
Have a nice day.