5 Practical Uses of AnyDesk Command-Line Interface for Efficient Deployment and Connectivity
Practical Uses of the Command-Line Interface
The command-line interface provides a range of features for automating various processes related to AnyDesk. Here are some examples of how you can leverage it with AnyDesk.
Streamlined Deployment
The command-line features can be integrated with software management and deployment tools to efficiently deploy and configure AnyDesk on multiple devices without the need for manual intervention on each device.
For this purpose, we recommend utilizing a custom MSI installation package and preconfigured versions of our .exe files, such as the Default, Customer Module, and Service Module versions, which can be easily distributed. These can be further customized using the custom client generator on my.anydesk.com.
These customized packages can be automatically deployed using scripts and the commands outlined in the Installation Commands, or through other deployment tools.
An example batch script for installing AnyDesk, registering the license key, and setting a password could look like this:
@echo off
AnyDesk.exe –install “C:\Install\AnyDesk\Here” –start-with-win –silent –create-shortcuts –create-desktop-icon
echo licence_keyABC | “C:\Install\AnyDesk\Here\AnyDesk.exe” –register-licence
echo password123 | “C:\Install\AnyDesk\Here\AnyDesk.exe” –set-password
Uninstalling AnyDesk
When AnyDesk is no longer needed on specific machines, it can be uninstalled using the built-in operating system uninstaller or the command-line interface.
This can be achieved using the --remove or --uninstall commands mentioned in the Installation Commands.
--uninstall initiates the uninstallation process for the AnyDesk client, prompting a GUI to guide the user through the uninstallation process.
For a scripted or software-driven removal, --remove is the appropriate parameter to use. To ensure a completely silent removal, appending --silent will suppress any error messages.
For a silent removal without additional user input, you can use the following command:
anydesk.exe –silent –remove
However, note that --remove only uninstalls the AnyDesk application from the Windows operating system and does not remove any residual files, which must be manually deleted.
Command-Line Connectivity
Implementing AnyDesk into existing software can be facilitated by connecting through the command-line interface using the commands and parameters detailed in the Connection Commands.
Customizing AnyDesk Shortcuts
The parameters outlined in the Connection Commands can be used to customize shortcuts created by AnyDesk on the desktop.
This can be achieved by adding parameters to the “Target” field in the “Properties” of the desktop shortcut. For instance:
“C:\Program Files (x86)\AnyDesk\AnyDesk.exe” 123456789 –plain
- Published at