remote-desktop | A toy remote desktop implemented by python | Computer Vision library
kandi X-RAY | remote-desktop Summary
kandi X-RAY | remote-desktop Summary
Python实现的远程桌面控制
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles mouse events
- Return keycode mapping
remote-desktop Key Features
remote-desktop Examples and Code Snippets
Community Discussions
Trending Discussions on remote-desktop
QUESTION
I'm having trouble creating a Powershell script that will open an RDP session without a prompt asking for a password.
I've followed the instructions in the following post, however the password prompt always pops up.
Here is the script:
...ANSWER
Answered 2021-Sep-23 at 05:20So I figured it out with Bonneau21's help (thanks!):
I'm connecting to a computer that isn't part of a domain, because of that I need to connect with a local user.
What I did was a slight change to the original script indicating that the user I need to connect with is local:
QUESTION
I'm trying to enable remote desktop on a container image.
Dockerfile ...ANSWER
Answered 2021-May-31 at 14:20The reference you used to build your Dockerfile states that after 1709_KB4074588 RDP cannot be made to work anymore. Pulling today that tag does not work either: you get a response from the server but can't execute anything. I have no idea how the windows and servercore images differ in general and in terms of RDP, and on top of that I'm by no means a windows expert. My experience so far (using xfreerdp as client):
- windows/servercore:1607 cexecsvc running, port 3389 not listening
- windows/servercore:1709 can connect to RDP but executing an app results in ERRINFO_LOGOFF_BY_USER
- windows/servercore:1709_KB4074588 behaves same as 1709
Research shows also that you need to disable remote execution whitelist (don't know the correct name).
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fAllowUnlistedRemotePrograms /t REG_DWORD /d 1
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList" /v fDisabledAllowList /t REG_DWORD /f /d 1
After reading a brief about sessions, desktops and stations I wrote a quick test enumerating sessions (see LsaEnumerateLogonSessions and LsaGetLogonSessionData) and saw that while a normal RDP session shows many (why? no idea) sessions for the same user and a few of them are interactive (10 - CachedInteractive in my case) a console in a Docker instance shows a single session for the ContainerAdministrator user of type 5 (Proxy - not supported), so as I understand it there's no way to get an interactive desktop from this session.
QUESTION
For the Reset function, I go to Settings > Updates and Security > Recovery > Reset this PC. So this is a choice that I make, and on that basis I want to choose for that system to run a script after the Reset - and we know that should be possible as we can create completely customised Windows installation ISOs that install apps and Features in a clean state, so can someone tell me how to do a quite simple things - to just get Windows to run a PowerShell script after that Reset?
Actually, I only want to run a couple of lines:
...ANSWER
Answered 2020-Dec-06 at 14:15The easiest way to do this is to download PStools from Microsoft and use psexec
to give yourself remote access:
QUESTION
I'm trying to build an auto config batch file to set up new PC's the way I need them configured. One of the things I need to do is to enable RDP.
I have found this post which gives a solution involving changing a registry key:
reg add "HKLM\System\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0x00000000 /f
Many other posts and blogs give the same advice.
However, when I test this on my system, it only works if remote desktop has been enabled before, several times.
If I use the standard settings interface to enable RDP, I get an "enable remote desktop" popup, asking me to confirm that I want to allow RDP. I select yes, and the registry setting changes. I use the settings interface to turn RDP back off, I get another popup to confirm, I click yes, and the registry setting changes back.
However, it does not work the other way around - changing the registry setting does not affect the slider in the standard settings interface. Setting the registry key to zero does not enable RDP. I have checked that the firewall is configured to allow RDP, and that the relevant RDP services are all started. As soon as I turn the settings RDP slider on, I can RDP into the machine. Once I turn it off, even if I change the registry setting back and make sure all services/firewall settings are OK, I can't RDP in any more.
However, if I mess with the Enable RDP settings slider enough, eventually it stops showing the confirmation popup and just does it. At this point, changing that registry key has the desired effect - changing the registry key changes the position of the settings slider, and allows me to RDP into the machine as expected.
Obviously this makes my batch file ineffective on new PC's, which is it's whole purpose.
How can I overcome this?
Windows 10 Enterprise LTSC Version 1809
(edited to clarify some points)
...ANSWER
Answered 2020-Nov-24 at 13:46The following powershell script works for me:
QUESTION
I created windows VM on azure and I login to VM using RDP. After login, I changed RDS "Limit number of connections" to 2. Now I restart the VM and I cannot login anymore. It says "The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator"
I have access to powershell/PS and I can run any PS script in azure portal. So if any could give me PS script that will set the RDS "Limit number of connections" to x that would be great.
Note: RDS - Remote Desktop Service. You can navigate there by typing gpedit.msc
to windows Run box. and then Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections -> "Limit number of connections"
reference link https://www.top-password.com/blog/enable-multiple-remote-desktop-connections-in-windows-server/
...ANSWER
Answered 2020-Nov-24 at 03:11There is no PowerShell script to update the group policy. To limit the number of connections, you can temporarily edit the related registry MaxInstanceCount
in your Azure VM portal.
For exmaple, add the registry MaxInstanceCount
to value 300
, refer here.
QUESTION
We have a custom RDP client that we've built using the RDP ActiveX control and MFC: https://docs.microsoft.com/en-us/windows/win32/termserv/using-remote-desktop-web-connection
In order to support multiple monitors, we use the put_UseMultimon function: https://docs.microsoft.com/en-us/windows/win32/termserv/imsrdpclientnonscriptable5-usemultimon
This kind of works, but we have to manually stretch the window across the monitors. Maximizing the window will maximize it on one of the monitors. The experience we get is not so good, we can't really use the entire area, and the window title bar remains (when maximizing the window on one screen it disappears).
We would like to get an experience similar to mstsc, where maximizing the window will change it's style to maximized and make the window span on the entire area. Is there a way to maximize a window and make it span across all monitors?
...ANSWER
Answered 2020-Nov-18 at 05:48@JonathanPotter is right.
WM_GETMINMAXINFO
sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position.
The following is an example to achieve this purpose. (Note: Extend from main display to the second display does work. otherwise doesn't work.)
QUESTION
my goal is to configure a minimal Mate desktop that allows only Firefox and limited file management.
Up to now, I managed to strip down most of the desktop by editing the menu files in: /etc/xdg/menus/:
- mate-applications.menu
- mate-preferences-categories.menu
so that it looks now like this:
This strips the menu for all user, which is not optimal, but will do for this scenario. But I would also like to remove or disable the "lock screen" and "shutdown" buttons.
I tried this by configuring an appropriate dconf-Profile. There are settings that sound promising - but have no effect:
...ANSWER
Answered 2020-Sep-15 at 13:08To answer my own question - at least partially:
One of the problems was the name of the DCONF profile "remote-desktop" - the dash is not an allowed character here. So I renamed my db and profile from "remote-desktop" to "remotedesktop". Still no breakthrough.
Then I reinstalled mate, dropping "brisk-menu" from the installation and NOT adding a top panel menu. Instead I used dconf to add just Logout and Firefox launcher objects to the top panel. You have to edit the list of panel object-ids to make these object visible and to prevent mate from "bitching" about missing applets (like brisk menu).
Now I have the desired effect (logout and starting Firefox is accessible, but not Lock-Screen and Shutdown).
QUESTION
I am debugging an RDP connection, and in the .rdp
file there is a flag
ANSWER
Answered 2020-Jul-15 at 09:41This value seems to appear in remote application session when mouse is over rdp icon in task bar. For example see the icon where i set: workspace id:s:test
QUESTION
I am running a virtual machine in Google Cloud. I have installed the default Debian OS, and configured the desktop environment for remote connection, as explained here: https://cloud.google.com/solutions/chrome-desktop-remote-on-compute-engine
I have been able to connect to the instance via Chrome Remote Desktop, however periodically I have the problem that the Remote Desktop says the vm instance is online, however if I try to connect to it I get:
Looking at the Google Cloud console, the instance is clearly running. Normally if I restart the instance the problem is solved, however I have processes running on the instance that I do not want to stop.
UPDATE:
Following the advice from Serhii Rohoza I ran
sudo systemctl status chrome-remote-desktop
The status looked normal, listing:
Active: active (exited) since...
I then ran
sudo systemctl restart chrome-remote-desktop
and this solved the problem, I could log into remote desktop again, but it seemed the VM instance had restarted, which is a big problem since I am running processes on it that should not shut down. I guess this is a problem to send to Google Cloud Services support.
UPDATE 2:
I'm still running into this problem. I normally have a Jupyter Notebook running on the VM - this Notebook must keep running. When I saw the message saying that the remote computer is offline, I logged in via ssh and checked if the Jupyter Notebook is running:
jupyter notebook list
This returned:
http://localhost:8888/?token=9110bf40789971b5e252a272e9497039b4f3b45e506348df :: /home/qgenixtech
So the Notebook was running. I then ran:
sudo systemctl restart chrome-remote-desktop
and after that again:
jupyter notebook list
and then it shows no Notebooks running. So the restart command closed down the Notebook (and also all other open windows on the desktop).
UPDATE 3:
I spoke to a support technician at Google. The problem is on the Remote Desktop side, not the virtual machine. According to the technician this is a known problem, by he didn't have a solution for it. He referred me to these two links from Google Support:
https://support.google.com/chrome/thread/10213547?hl=en
https://support.google.com/chrome/thread/3333421?hl=en
The next option for me is to look at something like X2go
...ANSWER
Answered 2020-Apr-15 at 13:49To solve your issue you should follow documentation Troubleshooting and check status of the Chrome Remote Desktop service with command:
QUESTION
I'm creating an .rdp file (Remote Desktop Protocol), which will open a machine and open a program made by me in .NET C#, I can already do this, but I would need to pass parameters to this program, is there any way?
Commands I'm using in .rdp file:
...ANSWER
Answered 2020-Apr-14 at 17:08I ended up not finding a solution. Apparently it is not possible to pass parameters through the command line, only if it were a RemoteApp, which is not the case, as this should run on old windows.
I wanted to use parameters to open Forms. But as it was not possible, I will create an .exe for each form, where in the .rdp file I will inform which one I want to open.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install remote-desktop
You can use remote-desktop like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page