Command-Line Interface for Windows

Table of Contents

The following commands can be entered in the Windows command line or can be used in a script in order to automate parts of AnyDesk.

It is important to run these commands in the correct path AnyDesk is located in or to specify the correct path manually.

By default, standard AnyDesk clients from are installed in the following location:
C:\Program Files(x86)\AnyDesk\AnyDesk.exe

For custom clients created from, they can be found in the following location instead:

C:\Program Files(x86)\AnyDesk-<prefix>\AnyDesk-<prefix>.exe

The <prefix> can be found in the Clients Details page of an existing custom client configuration in the Files tab of

The <prefix> can be found in the row labeled "Prefix" after "ad_". It is randomly generated and unique for each account.

Installation Commands

These commands are used when installing or updating AnyDesk through the command-line interface in the form:

anydesk.exe --install <location> <additional_parameters>

For example:

anydesk.exe --install  “C:\Program Files (x86)\AnyDesk” –start-with-win –create-desktop-icon
Parameter Description
--install <location>

Install AnyDesk to the specified <location>.
e.g. C:\Program Files (x86)\AnyDesk

--start-with-win Automatically start AnyDesk with Windows. This is needed to be able to connect after restarting the system.
--create-shortcuts Create start menu entry.
--create-desktop-icon Create a link on the desktop for AnyDesk.
--remove-first Remove the current AnyDesk installation before installing the new one. e.g. when updating AnyDesk manually.
--silent Do not start AnyDesk after installation and do not display error message boxes during installation.
--update-manually Update AnyDesk manually
(Default for custom clients).
--update-disabled Disable automatic update of AnyDesk.
--update-auto Update AnyDesk automatically
(Default for standard clients, not available for custom clients).

Back to Top

Client Commands

These commands can be used to interact with the AnyDesk client through the command-line interface or scripts.

Command Description
anydesk.exe <parameter> See Client Command Parameters.
echo <license_key> | anydesk.exe --register-license Register the specified license key. (Requires administrative privileges)
echo <my_password> | anydesk.exe --set-password Set the specified password for unattended access.

Client Command Parameters

Parameter Description


Uninstall AnyDesk (with prompts).
--remove Uninstall AnyDesk without notice (silent uninstall).


Start the process which creates the tray icon.


Start the AnyDesk service.
--stop-service Stop the AnyDesk service.
--restart-service Restart the AnyDesk service.

Remove the unattended access password. (Requires administrative privileges).

Please note that preset passwords from custom clients cannot be removed.

--get-alias Return the AnyDesk-Alias. Needs to be run in a script.
--get-id Return the AnyDesk-ID. Needs to be run in a script.
--get-status Return the client's online status. Needs to be run in a script.
--version Return the current AnyDesk client version. Needs to be run in a script.
--settings Open the default settings page.
--admin-settings Open the global settings page.

Viable parameters:
ui, security, alias, privacy, video, capture, audio, connection, file_transfer, recording, printer, wol, license, about

Open the specified settings page.


Viable parameters:
capture, security, connection, recording

Open the specified global settings page. (Requires administrative privileges).


Show the customized disclaimer.


Show the advertisement page of AnyDesk. Thank you for sharing! 

Client Batch Scripts

Get AnyDesk-ID:

@echo off
for /f "delims=" %%i in ('"C:\Program Files (x86)\AnyDesk\AnyDesk.exe" --get-id') do set CID=%%i
echo AnyDesk ID is: %CID%

Get AnyDesk-Alias:

@echo off
for /f "delims=" %%i in ('"C:\Program Files (x86)\AnyDesk\AnyDesk.exe" --get-alias') do set CID=%%i
echo AnyDesk Alias is: %CID%

Get the online status:

@echo off
for /f "delims=" %%i in ('"C:\Program Files (x86)\AnyDesk\AnyDesk.exe" --get-status') do set CID=%%i
echo AnyDesk status is: %CID%

Get AnyDesk version:

@echo off
for /f "delims=" %%i in ('"C:\Program Files (x86)\AnyDesk\AnyDesk.exe" --version') do set CID=%%i
echo AnyDesk version is: %CID%

Back to Top

Connection Commands

A connection can be established through the command-line interface.
When requesting a connection through the command line, several parameters can be appended.

Command Description
anydesk.exe <ID/Alias> <additional parameters>

AnyDesk will request a connection to the specified client.

See Optional Connection Command Parameters for additional parameters

echo <password | anydesk.exe <ID/Alias> --with-password AnyDesk will send a connection request to the specified client with the entered password.

Optional Connection Command Parameters.

Parameter Description
--file-transfer AnyDesk will start a File Transfer session.
--fullscreen AnyDesk will start an interactive session in fullscreen mode.
--plain AnyDesk will start an interactive session in a plain window without borders or menu points.

Back to Top