remote-desktop

Access to GUI on remote machine using PowerShell and WinRM

六月ゝ 毕业季﹏ 提交于 2019-12-07 02:58:25
Is it possible to get access to a GUI on a remote machine using PowerShell with for example WinRM? I have an application which uses UI Automation framework to examine some GUI. This application should be run remotely on some machine. Right now I am able to run application remotely but I can't see any UI elements (which is quite obvious). What's the best approach for this. JPBlanc As far as I understand begining in Vista Microsoft block acces to the interactive desktop from a service. To make working on Seven, my services which were interacting with the user desktop in XP, I create a process

Installing PFX certificate on a different user

好久不见. 提交于 2019-12-06 12:42:46
The code below works pefectly to install a pfx on the current user. I want to install it on another user, by giving the username and password (without having to log in with that user). I did this a while ago with a batch file, how could I do this using C#? I've tried a few things, including impersonation but couldn't make it work. X509Certificate2 certificate = new X509Certificate2("C:\\teste\\cert.pfx", "password"); X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadWrite); store.Add(certificate); store.Close(); Update: Thanks to Bill's code,

WTSOpenServer returns “access denied”

杀马特。学长 韩版系。学妹 提交于 2019-12-06 11:58:03
I'm trying to use the Remote Desktop API on a remote machine that I have Administrator rights on, however the WTSOpenServer call always returns error 5 ("Access denied"). I even tried calling WNetAddConnection2 to establish a session, which works fine (I can connect to IPC$ or C$) on the machine). I can also use the Remote Desktop client to actually start a terminal session to it. The remote machine is running Windows XP Pro SP3 and I'm running Windows XP Pro x64 SP2. Check the value of HKLM\System\CurrentControlSet\Control\TerminalServer\AllowRemoteRPC, it is set to 0 by default on

MachineName for remote machine using Remote Desktop

笑着哭i 提交于 2019-12-06 11:47:48
问题 I'm writing a C# program where it would be useful to see if someone is running the program via remote desktop and if so, the machine name where the remote desktop is running. I can get the former using SystemInformation.TerminalServerSession But is there any way to get the name of the remote machine? 回答1: I think the Remote Desktop Services API will do what you want... http://msdn.microsoft.com/en-us/library/aa383468(v=VS.85).aspx And the following example may help too - http://community

Remote desktop TO Windows CE … over USB? [closed]

*爱你&永不变心* 提交于 2019-12-06 08:45:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there any way to remote-desktop INTO a Windows CE device if all I have to work with on that device is a USB port? I'd like to be able to record the screen. 回答1: ActiveSync supports ActiveSync Remote Display . And ActiveSync works via USB. See if your WinCE device supports ActiveSync. Otherwise, you could do

how to start teamviewer session on the basis of teamviewerid in asp.net

对着背影说爱祢 提交于 2019-12-06 03:25:41
I have a list of computers from a SQL table Computers (with columns computerid guid, computername varchar(80), TeamviewerID varchar(30) ) and I want to create a web app that links teamviewer id and can start a teamviewer session. I have read and search lots of documents but did not find any way. Can anyone please suggest me or provide me any example that can help me in this. In ASP.NET you could generate something like a grid, with a list of computers, TeamViewer IDs and a "Connect" button. This button should just open a browser tab to the following URL: teamviewer8://remotecontrol?connectcc

C# Custom Remote Desktop Client using RDP 8.0

假如想象 提交于 2019-12-05 22:52:51
问题 I have searched MSDN forum for this, but it seems everyone(i think) suggests to revert to RDP 7.x (uninstall MS Update KB2592687). I have an custom Remote Desktop client written in C#/WPF,the Remote Desktop ActiveX control is hosted inside a WindowsFormsHost control. The app works well prior to update RDP 8.0 (MS Update KB2592687). If i uninstall the MS update(revert to RDP 7.1), the app works. My RDP Client is used to connect to Virtualbox VRDP (Virtualbox 4.2.x), no authentication needed

C# application keeps freezing on remote

霸气de小男生 提交于 2019-12-05 20:20:07
问题 I am developing a C# application (.Net 3.5, Win Forms) which is run on a server, and is accessed by Users using remote desktop. The application keeps freezing on seemingly random occasions on the remote machine (i.e. all GUI components turn to white, task manager reports the application to be not responding), but not when run locally (I'm not entirely sure about that, but failed to reproduce the freeze on my machine). Has anyone experienced such behavior in his apps that are accessed remotely

copy file to remote desktop drive

眉间皱痕 提交于 2019-12-05 19:43:42
I want to copy a file from my local C:\filename.png to the remote computer to which I am connected via remote desktop's C:\ drive. Is it possible to copy using powershell or anyother terminal command? I am using windows 7 (local PC) --- Remote Desktop (Windows Server 2003) Thomas Lee If your host's c: drive is injected into a terminal services session, it just gets a new drive letter in the remote session. On my network, my host machine's drives are injected into a VM and C: becomes M:. So in that case, in the remote session: copy c:\file.png m:\png BUt perhaps a beter way - from your host:

Connect Azure RDP, “The logon attempt failed”

孤人 提交于 2019-12-05 14:25:23
I've just created two Windows VM's in Azure, one 2012 Datacenter and a 2008 R2 SP1 and i am not able to connect via remote desktop to either of them. Both machines are running under the same cloud service and the RDP ports are mapped to two distinct public ports. Every time i try to connect i get the error message "The logon attempt failed". Using NMAP in a Linux VM i also have there, i was able to check that the port 3389 is OPEN in both machines. Also, the public RDP ports respond correctly (e.g. are open). I tried to enter using two different Windows 7 client machines, also with no lock.