doc.rustdesk.com/content/client/Windows Portable Elevation/_index.en.md
21pages 0461f8e4c8 -qs-
Signed-off-by: 21pages <pages21@163.com>
2023-09-07 21:10:55 +08:00

47 lines
3.0 KiB
Markdown

---
title: Windows Portable Elevation
weight: 4
---
Windows portable programs do not have administrator privileges, which can lead to the following issues:
- The screen cannot be transmitted when the UAC (User Account Control) window pops up.
- When an elevated window, such as the Task Manager, pops up, the mouse becomes unresponsive.
By elevating privileges, RustDesk can create a process with administrator privileges during startup or a session, enabling it to perform screenshotting and mouse operations, thereby avoiding the above problems.
### Elevate at startup
This way, remote users don't need to request elevation when connecting. There are two methods:
* Method 1: Change the name of the portable program to include `-qs-` (1.2.0, 1.2.1, 1.2.2 versions end with `qs.exe`). Click the left mouse button to run, click `Accept` in the UAC window.
* Method 2: Right-click and run as administrator.
### Elevate at the controlled end
The controlled end can directly click `Accept and Elevate` when connecting, or click `Elevate` when already connected.
| Connecting | Connected |
| :---: | :---: |
| ![](/docs/en/client/Windows%20Portable%20Elevation/images/cm_unauth.jpg) | ![](/docs/en/client/Windows%20Portable%20Elevation/images/cm_auth.jpg) |
### Request elevation at the control end
After selecting `Request Elevation` from the action menu, the following dialog box will appear. If you choose `Ask the remote user for authentication`, you won't need to input a username and password, but the user on the remote computer must have administrator privileges. If you select `Transmit the username and password of administrator"`, the user on the remote computer only needs to accept in the UAC window. After sending the request, please wait for the user on the other side to accept the UAC window. Upon confirmation, a success message will appear. Note that **both methods require someone on the controlled end to accept the UAC window**. Therefore, if there is no one available on the other side, elevation should not be requested at the control end.
| Menu | Dialog |
| :---: | :---: |
| ![](/docs/en/client/Windows%20Portable%20Elevation/images/menu.png) | ![](/docs/en/client/Windows%20Portable%20Elevation/images/dialog.png) |
| **Wait** | **Success** |
| ![](/docs/en/client/Windows%20Portable%20Elevation/images/wait.png) | ![](/docs/en/client/Windows%20Portable%20Elevation/images/success.png) |
### How to Choose
| Scenario | Method |
| :---: | :---: |
| No elevation required | Install the program |
| No user available at the controlled end | Rename<br/>*or*<br/> Run with administrator |
| User available at the controlled end<br/>*and*<br/> Immediate elevation when connected<br/>*and*<br/> Accept-via-click connection | Click `Accept and Elevate` when receiving the connection at the controlled end |
| User available at the controlled end<br/>*and*<br/> Elevation as needed | Click `Elevate` on the connection management window at the controlled end<br/>*or*<br/> Request elevation at the control end |