> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/sending-windows-credentials-to-teamviewer.md).

# Sending Windows credentials to TeamViewer

Many users have requested the ability to automate the login process on a Windows system through TeamViewer.

Since we are not able to send the password automatically inside the TeamViewer session, you would need to accomplish this with a typing macro.

1. Open Remote Desktop Manager.
2. Add a new entry and select ***Typing Macro*** under ***Macro/Script/Tool***.
3. Enter ***$USERNAME${TAB}$PASSWORD${TAB}{ENTER}*** in the general field of the typing macro.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Please note that the <em><strong>initial wait</strong></em> has been configured to 5 seconds, this varies depending on each user system.</p></div>
4. Click ***Add*** to save.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6016_2024_1.png" alt=""><figcaption></figcaption></figure>
5. Open your ***Credential Management entry***.

You can create a ***Credential Management entry*** in Remote Desktop Manager by clicking ***Add a new entry – Credential Management*** and selecting ***Username / Password***.

6. Go the properties of your Credential entry and enable ***Allow password in variable*** under ***Security Settings***.
7. Click ***Update*** to save.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6014_2024_1.png" alt=""><figcaption></figcaption></figure>

### Devolutions Server and Devolutions Cloud

If you have an Devolutions Server or Devolutions Clou&#x64;***,*** you will need to enable ***Allow password variable in macros***.

1. Go to ***Administration – System Settings*** in the ribbon of Remote Desktop Manager.
2. Select ***Password management – Password policy – Allow password variable in macros***.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6012_2024_1.png" alt=""><figcaption></figcaption></figure>

The next step happens when the TeamViewer session is open and credentials are ready to be entered.

3. Right-click on your credential entry and select ***Macros/Scripts/Tools - Send credentials*** (or the name you gave your entry).

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6015_2024_1.png" alt=""><figcaption></figcaption></figure>

In conclusion, put the mouse cursor in the appropriate login field and the typing macro will do the rest.

### ID entered instead of credentials in the TeamViewer entry

If you have entered an ID instead of credentials in the TeamViewer entry, a ***$TOOL\_PASSWORD$*** variable is required.

1. Open Remote Desktop Manager.
2. Add a new entry and select ***Typing Macro*** under ***Macro/Script/Tool***.
3. Enter ***$TOOL\_PASSWORD${TAB}{ENTER}*** in the general field of the typing macro.
4. Click ***Add*** to save.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6019_2024_1.png" alt=""><figcaption></figcaption></figure>
5. Go to the properties on your TeamViewer entry and select ***Events – After Open***.
6. Execute a macro automatically by either writing the macro or linking to a macro entry.
7. Click ***Update***.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6017_2024_1.png" alt=""><figcaption></figcaption></figure>

The entry where the ***$TOOL\_PASSWORD$*** macro fetch the credentials must be linked.

8. Edit your TeamViewer entry and go to ***Management Tools***.
9. Select ***Linked (vault)*** and your entry in the ***Credentials*** drop-down menus.
10. Click ***Update*** to save.

    <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6018_2024_1.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/sending-windows-credentials-to-teamviewer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
