Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import platform
import random
import re
import string
import sys
print('''
--------------------------------
TeamViewer 14 ID Changer for MAC OS
Version: 0.2 2019
--------------------------------
''')
if platform.system() != "Darwin":
print("This script can be run only on MAC OS.")
sys.exit()
if os.geteuid() != 0:
print("This script must be run form root.")
sys.exit()
if "SUDO_USER" in os.environ:
USERNAME = os.environ["SUDO_USER"]
if USERNAME == "root":
print("Can not find user name. Run this script via sudo from regular user")
sys.exit()
else:
print("Can not find user name. Run this script via sudo from regular user")
sys.exit()
HOMEDIRLIB = "/Users/" + USERNAME + "/library/preferences/"
GLOBALLIB = "/library/preferences/"
CONFIGS = []
# Find config files
def listdir_fullpath(d):
return [os.path.join(d, f) for f in os.listdir(d)]
for file in listdir_fullpath(HOMEDIRLIB):
if 'teamviewer' in file.lower():
CONFIGS.append(file)
for file in listdir_fullpath(GLOBALLIB):
if 'teamviewer' in file.lower():
CONFIGS.append(file)
if not CONFIGS:
print('''
There is no TemViewer configs found.
Maybe you have deleted it manualy or never run TeamViewer after installation.
Nothing to delete.
''')
else:
# Delete config files
print("Configs found:\n")
for file in CONFIGS: print(file)
print('''
This files will be DELETED permanently.
All TeamViewer settings will be lost
''')
raw_input("Press Enter to continue or CTR+C to abort...")
for file in CONFIGS:
try:
os.remove(file)
except:
print("Cannot delete config files. Permission denied?")
sys.exit()
print("Done.")
# Find binaryes
TMBINARYES = [
'/Applications/TeamViewer.app/Contents/MacOS/TeamViewer',
'/Applications/TeamViewer.app/Contents/MacOS/TeamViewer_Service',
'/Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Desktop',
'/Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Assignment'
]
for file in TMBINARYES:
if os.path.exists(file):
pass
else:
print("File not found: " + file)
print ("Install TeamViewer correctly")
sys.exit()
# Patch files
def idpatch(fpath, platf, serial):
file = open(fpath, 'r+b')
binary = file.read()
PlatformPattern = "IOPlatformExpert.{6}"
SerialPattern = "IOPlatformSerialNumber%s%s%s"
binary = re.sub(PlatformPattern, platf, binary)
binary = re.sub(SerialPattern % (chr(0), "[0-9a-zA-Z]{8,8}", chr(0)), SerialPattern % (chr(0), serial, chr(0)), binary)
file = open(fpath, 'wb').write(binary)
return True
def random_generator(size=8, chars=string.ascii_uppercase + string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
RANDOMSERIAL = random_generator(8)
RANDOMPLATFORM = "IOPlatformExpert" + random_generator(6)
for file in TMBINARYES:
try:
idpatch(file, RANDOMPLATFORM, RANDOMSERIAL)
except:
print("Error: can not patch file " + file)
sys.exit()
print("PlatformDevice: " + RANDOMPLATFORM)
print("PlatformSerial: " + RANDOMSERIAL)
os.system("sudo codesign -f -s - /Applications/TeamViewer.app/")
print('''
ID changed sucessfully.
!!! Restart computer before using TeamViewer !!!!
''')
@Firues

This comment has been minimized.

Copy link

Firues commented Jul 29, 2017

Thank you!

@ryutao

This comment has been minimized.

Copy link

ryutao commented Mar 31, 2018

Thank you very much!

@SoniyaSmug

This comment has been minimized.

Copy link

SoniyaSmug commented Apr 7, 2018

This is not working for me. Showing the following error.
Traceback (most recent call last):
File "./TeamViewer-id-changer.py", line 26, in
if os.environ.has_key('SUDO_USER'):
AttributeError: '_Environ' object has no attribute 'has_key.

Please anybody help

@flash66

This comment has been minimized.

Copy link

flash66 commented Apr 9, 2018

Absolutely brilliant! Where can I donate?

@konredi

This comment has been minimized.

Copy link

konredi commented Apr 22, 2018

Thank you Thank you Thank you Thank you !

@flip68

This comment has been minimized.

Copy link

flip68 commented May 8, 2018

This doesn't appear to work for Teamviewer 13 releases?

@pingod

This comment has been minimized.

Copy link

pingod commented May 15, 2018

@flip68 try it,you will get what you want

@pingod

This comment has been minimized.

Copy link

pingod commented May 15, 2018

Thank you Thank you Thank you Thank you !

@yuuzhang

This comment has been minimized.

Copy link

yuuzhang commented Jun 5, 2018

Perfectly work on release 13.14170, Thank your brilliant job!

@alluminator

This comment has been minimized.

Copy link

alluminator commented Jun 9, 2018

how does it run? I do not understand. I installed pyton, but the script is executed and nothing happens. Can someone record a video?

@wzrzt

This comment has been minimized.

Copy link

wzrzt commented Jun 13, 2018

@SoniyaSmug, try run it with /usr/bin/python *.py
You should use python2

@LonelyWolfJH

This comment has been minimized.

Copy link

LonelyWolfJH commented Jun 22, 2018

@SoniyaSmug, @alluminator
There is a revised version as Python 3 in here
just do "sudo ./filename.py" in the Terminal.
Thank you for Pavel Zhovner

@julik272237

This comment has been minimized.

Copy link

julik272237 commented Jul 8, 2018

I do not understand, how to do it!
Can someone record a video, please?

@julik272237

This comment has been minimized.

Copy link

julik272237 commented Jul 8, 2018

Could somebody help with this ? Can't run the script

This script must be run form root.
Exit status: 0
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Процесс завершен]

@kenjdcee

This comment has been minimized.

Copy link

kenjdcee commented Jul 19, 2018

hi guys,

got an error running this script.

Traceback (most recent call last):
File "./TeamViewer-id-changer.py", line 45, in
for file in listdir_fullpath(HOMEDIRLIB):
File "./TeamViewer-id-changer.py", line 43, in listdir_fullpath
return [os.path.join(d, f) for f in os.listdir(d)]
OSError: [Errno 2] No such file or directory: '/Users/username of my pc/library/Preferences/

Thank youm

@zibot

This comment has been minimized.

Copy link

zibot commented Aug 9, 2018

Да

@WorldWideWebDev

This comment has been minimized.

Copy link

WorldWideWebDev commented Aug 9, 2018

How can i sue this to re-instate an old "ID" such as the original "ID" i registered with? Can anyone help? Its an important question.
Regards Anthony.

@slashtiger

This comment has been minimized.

Copy link

slashtiger commented Aug 11, 2018

@WorldWodeWeb sorry, you can’t… This script generates a random ID and resets various identifiers with which TeamViewer presents itself to the server, such as the Platform Serial Number. I myself actually would’ve liked the script to have been able to let you specify an ID, bit that wouldn’t have worked anyway. This is because doing so would automatically block that ID on TeamViewer’s server-end. I would have loved to have been able to use my own older ID, purely because I know it off by heart.The reason I myself am looking into changing my ID is because I have been wrongly accused of using the product commercially, twice in a row. At first, they cleared me; then they decided just now to do it again. I’m under the impression that my current ID is also being used elsewhere, because there is no factor nearby me that could’ve triggered a flag in their system. So I’m currently first trying to play nice by sending in a form where you can state your case into using the software non-commercially as intended (you can find that here:
(click))

If they decide my case is not valid, for some reason, then I might try it through this route. It can take anywhere from a week to two months to have the ‘Commercial Use’ flag taken off your ID if you go the intended route, but it actually is the only foolproof route there is. Changing your ID but then continuing not to use TeamViewer according to its non-commercial use guidelines, will have you flagged again in no time.

@jat-x

This comment has been minimized.

Copy link

jat-x commented Aug 15, 2018

It`s work with TeamViewer 13.
Thank You!

@lyon007

This comment has been minimized.

Copy link

lyon007 commented Aug 24, 2018

You are great !!!!!!!

@nguyenbathanh

This comment has been minimized.

Copy link

nguyenbathanh commented Aug 25, 2018

Oh my god! It works perfectly.

@carythesaddler

This comment has been minimized.

Copy link

carythesaddler commented Aug 25, 2018

i am NOT a coder. however i'm trying to run this script in terminal. i keep getting command not found. i set it to sudo the root etc and just cannot execute this script. any help for a non techie?

@juato4

This comment has been minimized.

Copy link

juato4 commented Sep 4, 2018

WONDERFULLLLLLL

@chatiking

This comment has been minimized.

Copy link

chatiking commented Sep 8, 2018

I am getting this error, could somebody help me for finding out what I am doing wrong?

if platform.system() != 'Darwin':
-bash: syntax error near unexpected token !=' ~ print('This script can be run only on MAC OS.') -bash: syntax error near unexpected token 'This script can be run only on MAC OS.''
~ sys.exit();
-bash: syntax error near unexpected token `;'
~
~ if os.geteuid() != 0

@chatiking

This comment has been minimized.

Copy link

chatiking commented Sep 8, 2018

it is working now!
just using :
sudo python ./TeamViewer-id-changer.py

@xtechgamer735

This comment has been minimized.

Copy link

xtechgamer735 commented Sep 15, 2018

@WorldWodeWeb sorry, you can’t… This script generates a random ID and resets various identifiers with which TeamViewer presents itself to the server, such as the Platform Serial Number. I myself actually would’ve liked the script to have been able to let you specify an ID, bit that wouldn’t have worked anyway. This is because doing so would automatically block that ID on TeamViewer’s server-end. I would have loved to have been able to use my own older ID, purely because I know it off by heart.The reason I myself am looking into changing my ID is because I have been wrongly accused of using the product commercially, twice in a row. At first, they cleared me; then they decided just now to do it again. I’m under the impression that my current ID is also being used elsewhere, because there is no factor nearby me that could’ve triggered a flag in their system. So I’m currently first trying to play nice by sending in a form where you can state your case into using the software non-commercially as intended (you can find that here:
(click))

If they decide my case is not valid, for some reason, then I might try it through this route. It can take anywhere from a week to two months to have the ‘Commercial Use’ flag taken off your ID if you go the intended route, but it actually is the only foolproof route there is. Changing your ID but then continuing not to use TeamViewer according to its non-commercial use guidelines, will have you flagged again in no time.

Did you ever get the flag removed? In the same boat with the commercial pop up. Thanks!

@Kangqj

This comment has been minimized.

Copy link

Kangqj commented Oct 8, 2018

good!
it is work, thank you very much!

@liujie-gd

This comment has been minimized.

Copy link

liujie-gd commented Oct 12, 2018

Cool!
Thanks very much!

@JimLee1996

This comment has been minimized.

Copy link

JimLee1996 commented Oct 16, 2018

It's very awesome! Is there any python3 version?

@trahtenberg68

This comment has been minimized.

Copy link

trahtenberg68 commented Oct 16, 2018

Hi. I've try it on TV10 on mac 10.7.4 and it didn't work, because serial pattern little bit different, to work correctly you need replace
SerialPattern = "IOPlatformSerialNumber%s%s%sUUID"
to SerialPattern = "IOPlatformSerialNumber%s%s%s"
Thank you!

@charlyborwn

This comment has been minimized.

Copy link

charlyborwn commented Oct 18, 2018

Thank you so much!

@jazzygff

This comment has been minimized.

Copy link

jazzygff commented Oct 30, 2018

Anyone having issues with latest teamviewer beta? I had updated on other pcs but when trying to connect to one of those pcs I get prompted to update. Once update the app just crashes over and over. Tried full uninstall etc removing via terminal using rm commands. no luck. Wondering if the use of this script has caused it?

@tranthaihoang

This comment has been minimized.

Copy link

tranthaihoang commented Oct 31, 2018

Good! thank you

@jahrider

This comment has been minimized.

Copy link

jahrider commented Dec 18, 2018

Guys, can anyone give me advice?
Script is not working for me, could you help me how to solve the problem?

MacOs Mojave, Teamviewer 12.


TeamViewer ID Changer for MAC OS

Traceback (most recent call last):
File "./TeamViewer-id-changer.py", line 45, in
for file in listdir_fullpath(HOMEDIRLIB):
File "./TeamViewer-id-changer.py", line 43, in listdir_fullpath
return [os.path.join(d, f) for f in os.listdir(d)]
OSError: [Errno 2] No such file or directory: '/Users/jahrider2/library/preferences/'

@leomyth330

This comment has been minimized.

Copy link

leomyth330 commented Jan 3, 2019

Not working with 14.1.3399

@HaoJi666

This comment has been minimized.

Copy link

HaoJi666 commented Jan 11, 2019

Not working with 14.1.3399

Same as your version, but I can. D:

@AlemAblat

This comment has been minimized.

Copy link

AlemAblat commented Jan 12, 2019

Not working with 14.1.3399

@AlemAblat

This comment has been minimized.

Copy link

AlemAblat commented Jan 12, 2019

Error Code : 0X00000004
Trap Number: 14

@cspatel2008

This comment has been minimized.

Copy link

cspatel2008 commented Jan 12, 2019

Same thing again! Not working with 14.1.3399. Experts please suggest an alternative.

@AlemAblat

This comment has been minimized.

Copy link

AlemAblat commented Jan 13, 2019

Experts please suggest an alternative

You can reinstall 13 or 12 is working fine!

@cspatel2008

This comment has been minimized.

Copy link

cspatel2008 commented Jan 15, 2019

True, However it will not connect to any TV Client running over V.No. 13.

@lanlinlan

This comment has been minimized.

Copy link

lanlinlan commented Jan 15, 2019

14.1 is not working!! anyone can share the 14.0 dmg files?

@AlemAblat

This comment has been minimized.

Copy link

AlemAblat commented Jan 17, 2019

14.1 is not working!! anyone can share the 14.0 dmg files?

https://www.malavida.com/en/soft/teamviewer/mac/

Thanks!

@zhenhappy

This comment has been minimized.

Copy link

zhenhappy commented Jan 18, 2019

Not working with 14.1.3399

Change "IOPlatformSerialNumber%s%s%sUUID" to "IOPlatformSerialNumber%s%s%s" can be supported 14.1.3399

@pingod

This comment has been minimized.

Copy link

pingod commented Jan 23, 2019

Change "IOPlatformSerialNumber%s%s%sUUID" to "IOPlatformSerialNumber%s%s%s" can be supported 14.1.3399

Thanks!

@cspatel2008

This comment has been minimized.

Copy link

cspatel2008 commented Jan 26, 2019

Not working with 14.1.3399

Change "IOPlatformSerialNumber%s%s%sUUID" to "IOPlatformSerialNumber%s%s%s" can be supported 14.1.3399

Thanks!!

@diablothebest

This comment has been minimized.

Copy link

diablothebest commented Jan 27, 2019

Change "IOPlatformSerialNumber%s%s%sUUID" to "IOPlatformSerialNumber%s%s%s" can be supported 14.1.3399

After use it in script, TV14 don't work anymore!

@AlemAblat

This comment has been minimized.

Copy link

AlemAblat commented Jan 29, 2019

Change "IOPlatformSerialNumber%s%s%sUUID" to "IOPlatformSerialNumber%s%s%s" can be supported 14.1.3399

After use it in script, TV14 don't work anymore!

Can't support 14.1.XXXX

@inhouseaustralia

This comment has been minimized.

Copy link

inhouseaustralia commented Feb 12, 2019

same issue as above

@zhenhappy

This comment has been minimized.

Copy link

zhenhappy commented Feb 12, 2019

same issue as above

Can you paste your code and three files with '/Applications/TeamViewer.app/Contents/MacOS/TeamViewer',
'/Applications/TeamViewer.app/Contents/MacOS/TeamViewer_Service',
'/Applications/TeamViewer.app/Contents/Helpers/TeamViewer_Desktop'

@remixjc

This comment has been minimized.

Copy link

remixjc commented Feb 16, 2019

Hello everyone,I come from China,so i can only speak chinese,
所以,我要告诉大家,请打开Terminal.app ,然后输入 sudo -i ,输入你的密码
进入到root用户下,输入python 空格 ,把保存好的python文件拉进来会自动生成路径,回车即可。

@zhenhappy

This comment has been minimized.

Copy link

zhenhappy commented Feb 19, 2019

Hello everyone,I come from China,so i can only speak chinese,
所以,我要告诉大家,请打开Terminal.app ,然后输入 sudo -i ,输入你的密码
进入到root用户下,输入python 空格 ,把保存好的python文件拉进来会自动生成路径,回车即可。

最新的版本你那边能成功吗

@WesleyPolicena

This comment has been minimized.

Copy link

WesleyPolicena commented Feb 19, 2019

Some solution for the TV 14.1.9025?

@sleepent

This comment has been minimized.

Copy link

sleepent commented Feb 22, 2019

TV 14.1.9025 Already available

@sleepent

This comment has been minimized.

Copy link

sleepent commented Feb 22, 2019

把保存好的python文件拉进来会自

按你的方法做的,可是使用,谢谢

@ramiz918

This comment has been minimized.

Copy link

ramiz918 commented Feb 22, 2019

Please update for Teamviewer 14 the given script is not working thnaks

@buratinosa

This comment has been minimized.

Copy link

buratinosa commented Feb 22, 2019

Teamviewer 14 protected the binaries from being changed
All scripts not working

@kainjinez

This comment has been minimized.

Copy link

kainjinez commented Feb 25, 2019

Does not work on v14.1.9025. Experts please give solution. Thanks.

@Hootrix

This comment has been minimized.

Copy link

Hootrix commented Feb 26, 2019

感谢 可用。。
Thanks!!
Please use version 12.0.72647 for Mac to run successfully.

不能用的需要使用旧版本应用。
下载: https://teamviewer.en.uptodown.com/mac/download/1510547

@ramiz918

This comment has been minimized.

Copy link

ramiz918 commented Feb 28, 2019

in version 12 that automatically time out after every 5 minutes even we change the ID via script

@whoisoscar

This comment has been minimized.

Copy link

whoisoscar commented Mar 2, 2019

I am able to patch version 12 and 13 but once the app is quit and re-opened, it fails to open and asks for password to install helper which never does anything...

@lepangdan

This comment has been minimized.

Copy link

lepangdan commented Mar 9, 2019

After running the script and restarting my computer, the TeamViewer cannot be opened. Any help will be appreciated.
image

@Lodour

This comment has been minimized.

Copy link

Lodour commented Mar 15, 2019

This ad-hoc codesign works for version 14.
sudo codesign -f -s - /Applications/TeamViewer.app/Contents/MacOS/TeamViewer

@diablothebest

This comment has been minimized.

Copy link

diablothebest commented Mar 15, 2019

All works with 14 version! Just disable SIP in your OS (test ok on TV 14.1.18533)

@Deyashkin

This comment has been minimized.

Copy link

Deyashkin commented Mar 19, 2019

Thank you so much!!!
You are very helpful!!

@madmorf

This comment has been minimized.

Copy link

madmorf commented Mar 22, 2019

SIP disabled, working fine.

@ramiz918

This comment has been minimized.

Copy link

ramiz918 commented Mar 23, 2019

Disabled SIp , tested working fine, thank you soo much mates to let us know!!

@zhenhappy

This comment has been minimized.

Copy link

zhenhappy commented Mar 28, 2019

The latest version script for teamviewer 15 is here:
https://gist.github.com/zhenhappy/3c808a198715978a38acf0ba44044ea6

@CoinShine

This comment has been minimized.

Copy link

CoinShine commented Mar 28, 2019

I use version 13,but it always pop window and can't close.

@thomasgogo

This comment has been minimized.

Copy link

thomasgogo commented Apr 7, 2019

thank you !

@WuQic

This comment has been minimized.

Copy link

WuQic commented Apr 28, 2019

重置了但是现在不能开机启动了 而且关闭就全部退出了? 没有历史访问记录了

@mike14-2

This comment has been minimized.

Copy link

mike14-2 commented Jun 26, 2019

i have the problem to run the script.
In the Terminal i tried sudo ./TeamViewer-id-changer.py;
And i get this result: ... is not in the sudoers file. This incident will be reported.

I also tried python TeamViewer-id-changer.py

after writing my pasword, i got this result:

--------------------------------
TeamViewer ID Changer for MAC OS
--------------------------------
This script must be run form root.

Can someone help me?

@zhovner

This comment has been minimized.

Copy link
Owner Author

zhovner commented Jun 26, 2019

@mike14-2 you don't have configured root account. Also as i remember, this script is no longer works on newer versions of TeamViewer.

@mike14-2

This comment has been minimized.

Copy link

mike14-2 commented Jun 26, 2019

@mike14-2 you don't have configured root account. Also as i remember, this script is no longer works on newer versions of TeamViewer.

@zhovner: thanks, how do i configure root account?

@pwnyxz

This comment has been minimized.

Copy link

pwnyxz commented Jul 8, 2019

升级10.15 catalina beta,TV14.1.3399,使用脚本后,TV打开时就崩溃了,有人遇到相同情况吗?谢谢

@alexfoods1

This comment has been minimized.

Copy link

alexfoods1 commented Jul 9, 2019

@Lodour: Thank You! helped!

@Pekary

This comment has been minimized.

Copy link

Pekary commented Jul 18, 2019

could you write a script for restore the original ID? i have encountered a situation which need revert the ID, but it seems impossible now. so maybe we can backup the file about restoring original ID, and then write a scrip to restore it.

@Pekary

This comment has been minimized.

Copy link

Pekary commented Jul 19, 2019

i found reinstall teamviewer solved my asked question, hope it will help others.

@pwnyxz

This comment has been minimized.

Copy link

pwnyxz commented Jul 20, 2019

The latest version script for teamviewer 14 is here:
https://gist.github.com/zhenhappy/3c808a198715978a38acf0ba44044ea6

多谢,问题已解决。虽然仍然有提示,但是已经不会很快自动断开了

@zhovner

This comment has been minimized.

Copy link
Owner Author

zhovner commented Jul 26, 2019

多谢,问题已解决。虽然仍然有提示,但是已经不会很快自动断开了

@pwnyxz как насчет того, чтобы использовать english, братан?

@fisklask

This comment has been minimized.

Copy link

fisklask commented Aug 20, 2019

👍
Worked like a charm!
UPD: added details:
macOS 10.14.6 (18G87), TV v14.2.2558
SIP is enabled, GateKeeper is obviously disabled

@Al-Catrazz

This comment has been minimized.

Copy link

Al-Catrazz commented Aug 31, 2019

I figured it out!
I placed the TeamViewer-id-changer folder under APPLICATIONS and then changed the SUDO PYTHON command to replect that location... ! Seems to have RUN.. I don't know if it WORKED yet.. lol

HEY!
I downloaded the file... but I assume it has to be put in a SPECIFIC LOCATION for it to be found...
Can anybody advise?
running "sudo python ./TeamViewer-id-changer.py" gets me an err

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file './TeamViewer-id-changer.py': [Errno 2] No such file or directory

THNX

@SemElVik

This comment has been minimized.

Copy link

SemElVik commented Sep 10, 2019

this script finally works. (I never disconnected SIP.)
TV 14.5.5819 + Mojave 10.14.6
хотя я просто открывал VBox и работал через нее с new id.
thanks

@Vya-cheslav

This comment has been minimized.

Copy link

Vya-cheslav commented Sep 24, 2019

Mojave 10.14.6
script run ok
restart

teamwiever no run

@flash66

This comment has been minimized.

Copy link

flash66 commented Sep 24, 2019

Once again where can I donate? You rock dude!! @zhenhappy

@anastasiia1708

This comment has been minimized.

Copy link

anastasiia1708 commented Sep 25, 2019

Работает на версии 14.6.2452.
Долго искала решение данной проблемы и все же решила эту задачку!

  1. Скачайте скрипт на комп нажав "Download ZIP";
  2. Распакуйте архив;
  3. Вытащите файл "TeamViewer-id-changer.py" в папку "Downloads" (можно на рабочий стол, как Вам удобно)
  4. Закройте TeamViewer полностью;
  5. Запустите терминал и пропишите "cd Downloads"
    Конкретней:
    Last login: Wed Sep 25 19:36:09 on ttys000
    iMac-[имя компа]$ cd Downloads
    iMac-[имя компа]:Downloads [имя компа]$
    Далее Вы уже будете работать именно в этой папке.
  6. Пишем sudo ./TeamViewer-id-changer.py
  7. Терминал спросит: "Голубчик, а ты точно уверен?"
  8. Смело жмем "Enter"
  9. Перезапускаем комп, запускаем тим и проходим процедуру настройки.
  10. ВСЕ!!! Аллилуя!!!
@zhovner

This comment has been minimized.

Copy link
Owner Author

zhovner commented Sep 25, 2019

@anastasiia1708 Ох, вы зарегистрировались чтобы написать этот комментарий.
Я, признаться, не думал что этот скрипт кому-то будет нужен и опубликовал его просто для себя.

Кстати можно не качать ZIP архив, достаточно открыть ссылку teamviewer-id-changer-py (она вверху страницы на имени файла) и потом нажать cmd+s чтобы сохранить страницу.

Перед выполнением скрипта его нужно сделать исполняемым такой командой:
chmod +x ./TeamViewer-id-changer.py

@anastasiia1708

This comment has been minimized.

Copy link

anastasiia1708 commented Sep 25, 2019

@zhovner Это для таких как я)
Надеюсь, что мои "подсказки" хоть кому-то помогут)

@AlexsanderShaw

This comment has been minimized.

Copy link

AlexsanderShaw commented Sep 26, 2019

i just get an issue,


TeamViewer 14 ID Changer for MAC OS
Version: 0.2 2019

Traceback (most recent call last):
File "/Users/apple/Desktop/yaoyao/TeamViewer-id-changer.py", line 47, in
for file in listdir_fullpath(HOMEDIRLIB):
File "/Users/apple/Desktop/yaoyao/TeamViewer-id-changer.py", line 44, in listdir_fullpath
return [os.path.join(d, f) for f in os.listdir(d)]
OSError: [Errno 2] No such file or directory: '/Users/username/library/preferences/'

anyone knows why?thanks

@Vya-cheslav

This comment has been minimized.

Copy link

Vya-cheslav commented Sep 26, 2019

Работает на версии 14.6.2452.
Долго искала решение данной проблемы и все же решила эту задачку!

  1. Скачайте скрипт на комп нажав "Download ZIP";
  2. Распакуйте архив;
  3. Вытащите файл "TeamViewer-id-changer.py" в папку "Downloads" (можно на рабочий стол, как Вам удобно)
  4. Закройте TeamViewer полностью;
  5. Запустите терминал и пропишите "cd Downloads"
    Конкретней:
    Last login: Wed Sep 25 19:36:09 on ttys000
    iMac-[имя компа]$ cd Downloads
    iMac-[имя компа]:Downloads [имя компа]$
    Далее Вы уже будете работать именно в этой папке.
  6. Пишем sudo ./TeamViewer-id-changer.py
  7. Терминал спросит: "Голубчик, а ты точно уверен?"
  8. Смело жмем "Enter"
  9. Перезапускаем комп, запускаем тим и проходим процедуру настройки.
  10. ВСЕ!!! Аллилуя!!!Все сделал как написано
    тим не запустился...
    есть мысли?
@anastasiia1708

This comment has been minimized.

Copy link

anastasiia1708 commented Sep 26, 2019

@Vya-cheslav попробуй сделать все то же самое еще раз.
У меня тоже с первого раза Тим не запустился (Окно настроек выскочило в начале, а после завершения настроек ничего не происходило)

@Vya-cheslav

This comment has been minimized.

Copy link

Vya-cheslav commented Sep 26, 2019

Сделал 3 раза))
На 4 даже переустановил и появился старый ID
все четко по шагам и в конце говорит типа все ОК

ID changed sucessfully.
!!! Restart computer before using TeamViewer !!!!

И ничего
После запуска окно настроек. Ввожу новый пароль и .. может просто не терпеливый))) Минута ожидания это долго?

@anastasiia1708

This comment has been minimized.

Copy link

anastasiia1708 commented Sep 26, 2019

@Vya-cheslav Попробуй этот скрипт прогнать
https://gist.github.com/zhenhappy/3c808a198715978a38acf0ba44044ea6

А так, я даже и не знаю в чем дело..я в этом точно овощ

@xprncd

This comment has been minimized.

Copy link

xprncd commented Oct 13, 2019

thnx! useful script)

@luciphear

This comment has been minimized.

Copy link

luciphear commented Nov 11, 2019

Works on tv 14.6.2452, macOS 10.15.1 Catalina

Before running script:
Make sure you have xcode installed from the App Store.
Make sure you have run Teamviewer at least once.

While running the script:
Make sure Teamviewer is not running

After running the script
Make sure you restart after running the script.

@luciphear

This comment has been minimized.

Copy link

luciphear commented Nov 11, 2019

I figured it out!
I placed the TeamViewer-id-changer folder under APPLICATIONS and then changed the SUDO PYTHON command to replect that location... ! Seems to have RUN.. I don't know if it WORKED yet.. lol

HEY!
I downloaded the file... but I assume it has to be put in a SPECIFIC LOCATION for it to be found...
Can anybody advise?
running "sudo python ./TeamViewer-id-changer.py" gets me an err

/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file './TeamViewer-id-changer.py': [Errno 2] No such file or directory

THNX

Before you run the command "sudo python ./TeamViewer-id-changer.py" in Terminal,

Make sure the script is in the directory you're currently in by typing "ls"
If it's not then change your directory to where you downloaded the file to.

I downloaded the script to my home (username) directory in finder. Terminal defaults to that directory when you first open it.

@timmyz

This comment has been minimized.

Copy link

timmyz commented Nov 13, 2019

hey @zhovner ,
macos 10.15.1 + tv 14.7.1965
the script executed successfully, but if i lauch tv, it still shows non-commercial client, seems to be useless.

@zhovner

This comment has been minimized.

Copy link
Owner Author

zhovner commented Nov 13, 2019

@timmyz

This comment has been minimized.

Copy link

timmyz commented Nov 13, 2019

@timmyz

ezgif-2-8bf5adaa5ee6

well, so maybe i should downgrade my tv version i think. 🤔

@skabbit

This comment has been minimized.

Copy link

skabbit commented Nov 28, 2019

Works well on Mojave and TeamViewer v15. Just tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.