Automatic Deployment

Installing AnyDesk

AnyDesk offers a MSI package.

It is also possible to use the exe file for automated deployment.  AnyDesk can be instructed to install itself from a script as follows:
anydesk.exe --install <location> --start-with-win

  • <location> must be a full qualified path (e.g. c:\anydesk).
  • At the moment, AnyDesk must be started with windows.
Additional command parameters (after --install --start-with-win):
Parameter Description
--remove-first Perform an update or replace the existing installation
--create-shortcuts Create start menu entry
--create-desktop-icon Create a link on the desktop for AnyDesk
--silent Do not start AnyDesk after installation and do not display error message boxes.
The installation process has to be started as admin user, or it will not work.
You can also generate custom msi files in

See also: exit codes.

Automatically setting a password after installation

For security reasons, a password can not be set from the command line directly as this would enable malicious users to spy the password from the command line in Task Manager. Instead, a pipe is used to set the password.
For example, to set a password for an already installed AnyDesk, use this syntax in a batch file:

echo password | anydesk.exe --set-password


To install AnyDesk, set a password and register a license key from a batch file at the same time, you could use the following code:

@echo off
start /wait anydesk --install"c:\anydesk" --start-with-win --silent --create-shortcuts --create-desktop-icon
echo licence_key | anydesk.exe --register-licence
echo password | anydesk --set-password

This will install AnyDesk and wait for the installation to finish, then it will set a password in the newly installed AnyDesk.

Removing AnyDesk

To remove AnyDesk:
anydesk.exe --uninstall

Feedback and Knowledge Base