mirror of
				https://github.com/auchavez/Rust-Desk-Client-Deployment.git
				synced 2025-11-03 21:53:40 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			2.4 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.4 KiB
		
	
	
	
	
	
	
	
RustDesk Client Deployment Using PowerShell
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.
🎯 Features
- 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. 
🚀 How It Works
- 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.
 
📄 Included Files
Client-Deployment.ps1: Main PowerShell script for installation, configuration, and password setup.
⚠️ Note: The previous fallback
silentlycontinu.cmdis no longer required and has been removed.
📋 Requirements
- Windows with PowerShell 5.1 or newer.
 - Administrator privileges.
 - Internet access to download the RustDesk installer.
 - Access to your custom rendezvous and relay server.
 
📜 Change Log
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. 
📆 Latest Update
Last Updated: June 23, 2025
💬 Feedback & Contributions
Your feedback is welcome! If you encounter issues or have suggestions: