Automate the installation and configuration of RustDesk clients with this unified PowerShell script. This solution is ideal for environments requiring remote access, custom server configuration, and secure password provisioning.
- Automated Installation: Downloads and silently installs the desired RustDesk version.
- Custom Configuration: Applies a predefined
RustDesk2.tomlwith your rendezvous and relay server settings. - Secure Password Setup: Automatically sets a remote access password using the
--passwordparameter. - Version Check: Skips installation if the correct version is already installed.
- Log-Based Validation: Confirms configuration success by parsing RustDesk logs.
- Executable Option: The script can be compiled into a
.exeusing tools like PS2EXE.
- Admin Check: If not run as administrator, the script will prompt for elevation.
- Version Detection: Skips installation if the current version matches the target.
- Silent Install: Downloads and installs RustDesk without user interaction.
- Configuration Setup: Writes the configuration file to both user and service paths.
- Password Assignment: Uses
--password '$variable'(correctly quoted) to apply access credentials. - Validation via Logs: Reviews recent logs to confirm that the password and configuration were applied.
Client-Deployment.ps1: Main PowerShell script for installation, configuration, and password setup.
โ ๏ธ Note: The previous fallbacksilentlycontinu.cmdis no longer required and has been removed.
- Windows with PowerShell 5.1 or newer.
- Administrator privileges.
- Internet access to download the RustDesk installer.
- Access to your custom rendezvous and relay server.
June 23, 2025
- โ Script fully rewritten and unified.
- ๐ ๏ธ Fixed quoting issue in the
--passwordparameter (line 83 resolved). - ๐งน Removed the
.cmdfallback (no longer needed). - ๐งช Successfully tested using both
.ps1and compiled.exe.
Last Updated: June 23, 2025
Your feedback is welcome! If you encounter issues or have suggestions: