Thank you for reaching out to Microsoft Q&A forum!
To prevent the same mouse movements from affecting other sessions when running a UI Automation script in one session using Remote Desktop Connection Manager, follow these steps:
- Open the Remote Desktop Connection app.
- Enter the PC’s name you want to connect to.
- Click “Show Options.”
- In the “Local Resources” tab, under “Mouse,” select “Separate mouse for each remote desktop session.”
- Connect to the remote PC.
- Repeat these steps for all RDP sessions where you want to enable separate mouse modes1. This will ensure that the mouse movements are isolated to the specific session where the script is running.
By enabling separate mouse modes for each RDP connection, you’ll prevent the script’s mouse movements from affecting other sessions.
Best regards,