Skip to content

Instantly share code, notes, and snippets.

@05copy-attired
Last active June 9, 2025 18:46
Show Gist options
  • Save 05copy-attired/55176372e61c6c6da43c318d006f661a to your computer and use it in GitHub Desktop.
Save 05copy-attired/55176372e61c6c6da43c318d006f661a to your computer and use it in GitHub Desktop.
Teamviewer ID Reset

Remove Registry HKLM(ClientIC, ClientID, MIDInitiativeGUID), etc.

The above registry only applies if the user is not logged in.

I just used it as a way to delete the entire registry of TeamViewer.

That approach actually reassigns the TeamViewer ID value by replacing the UUID value.

Windows ONLY

@echo off
for /f "delims={}" %%I in ('bitsadmin /rawreturn /create guid') do set "GUID=%%~I"
>NUL bitsadmin /cancel {%GUID%}
taskkill /f /im tv*
taskkill /f /im teamviewer*
cd "C:\\Program Files\\TeamViewer"
wmic csproduct set uuid="%GUID%"
reg delete "HKLM\software\teamviewer" /f
reg delete "HKCU\software\teamviewer" /f
reg add "HKCU\Software\TeamViewer" /v "IntroShown" /t REG_DWORD /d 1
sc start teamviewer
start TeamViewer.exe
@bezik46
Copy link

bezik46 commented Oct 17, 2024

No idea how, because I get the same number no matter how many times I run it

C:\temp>tvreset.cmd

C:\temp>for /F "delims={}" %I in ('bitsadmin /rawreturn /create guid') do set "GUID=%~I"

C:\temp>set "GUID=8EE4CA7E-0974-42FE-94B8-FEAAD966C8B4"

C:\temp>bitsadmin /cancel {8EE4CA7E-0974-42FE-94B8-FEAAD966C8B4} 1>NUL

C:\temp>taskkill /f /im tv*
ERROR: The process "tv*" not found.

C:\temp>taskkill /f /im teamviewer*
SUCCESS: The process "TeamViewer_Service.exe" with PID 20092 has been terminated.

C:\temp>cd "C:\\Program Files\\TeamViewer"

C:\Program Files\TeamViewer>wmic csproduct set uuid="8EE4CA7E-0974-42FE-94B8-FEAAD966C8B4"
Updating property(s) of '\\SC-5530\ROOT\CIMV2:Win32_ComputerSystemProduct.IdentifyingNumber="D83SCS3",Name="Latitude 5530",Version=""'
ERROR:
Description = Provider is not capable of the attempted operation

C:\Program Files\TeamViewer>reg delete "HKLM\software\teamviewer" /f
The operation completed successfully.

C:\Program Files\TeamViewer>reg delete "HKCU\software\teamviewer" /f
The operation completed successfully.

C:\Program Files\TeamViewer>reg add "HKCU\Software\TeamViewer" /v "IntroShown" /t REG_DWORD /d 1
The operation completed successfully.

C:\Program Files\TeamViewer>sc start teamviewer

SERVICE_NAME: teamviewer
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 22100
        FLAGS              :

C:\Program Files\TeamViewer>start TeamViewer.exe

@Honza1616
Copy link

does not work
Win 11, 23H2

@eXec0101
Copy link

eXec0101 commented Jan 6, 2025

Thnxx, It works perfectly

@juniornightt
Copy link

qual versão funciona para o Windows 11

@rubgithub
Copy link

qual versão funciona para o Windows 11

Atualmente windows sandbox é a melhor solução.

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