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.
- At the moment, AnyDesk must be started with windows.
|--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.|
You can also generate custom msi files in my.anydesk.com.
See also: exit codes.
Automatically setting a password after installationFor 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
ExampleTo install AnyDesk, set a password and register a license key from a batch file at the same time, you could use the following code:
start /wait anydesk --install
--silent --create-shortcuts --create-desktop-icon
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 AnyDeskTo remove AnyDesk:
Uninstalling without notice (silent uninstall)