remote-desktop

Getting drive info from a remote computer

China☆狼群 提交于 2019-12-10 15:11:20
问题 I can view a remotly connected pc from this article :Remote Desktop using c-net . but i dont need it. I just have to connect with that pc and get the free space data of C drive. How could i do this? I can connect to a remote desktop. I can get driveInfo using IO namespace. but how to combine them? 回答1: Use the System.Management namespace and Win32_Volume WMI class for this. You can query for an instance with a DriveLetter of C: and retrieve its FreeSpace property as follows: ManagementPath

copy file to remote desktop drive

微笑、不失礼 提交于 2019-12-10 09:47:34
问题 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) 回答1: 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

How to use terminal services programmatically

跟風遠走 提交于 2019-12-09 23:50:43
问题 I want to access remote server using my program (C# .NET) and execute there a program in the context of connected user, just like using Remote Desktop. I don't want just run a program using some user account(like RunAs), but to have a separate execution session like Remote Desktop I guess terminal services should be used somehow, but I don't know exactly. Any help would be appreciated. 回答1: You should check out this open source project: http://www.codeplex.com/Terminals It uses Terminal

Generating RDP file on the fly

谁说我不能喝 提交于 2019-12-09 18:03:36
问题 I want to create a web application similar to TS Web Access, where I can create rdp files on the fly for Remote Apps configured on the server. Any idea?? 回答1: We had to do this exact thing. private void InvokeRDPSign(String fileName, String certificateThumbPrint) { Process signingProcess = new Process(); signingProcess.StartInfo.FileName = @"rdpsign.exe"; String arguments = String.Format("/sha1 {0} {1}", certificateThumbPrint, fileName); signingProcess.StartInfo.Arguments = arguments;

C# better compression for remote desktop broadcast application

只愿长相守 提交于 2019-12-09 13:53:04
问题 I am in the process of creating a TCP remote desktop broadcasting application. (Something like Team Viewer or VNC) the server application will 1. run on a PC listening for multiple clients on one Thread 2. and on another thread it will record the desktop every second 3. and it will broadcast the desktop for each connected client. i need to make this application possible to run on a connections with a 12KBps upload and 50KBps download DSL connection (client's and server). so.. i have to reduce

C# Non-Windows Remote Desktop

让人想犯罪 __ 提交于 2019-12-08 11:05:18
问题 I'd like to create a simple remote desktop application (you can view the screen remotely and interact with it). As a first step, I've tried taking screenshots, 1 per second, compressing them to JPEG and sending them over (without interaction), but I've found that even over LAN this is very slow. Do you have any hints on how to do this better? Is there C# sample code for projects like this? 回答1: You might consider looking at VNC's implementation. VNC is open source and does what you want. I

PyKeyboard.tap_key() doesn't work when I disconnect from Remote Desktop

女生的网名这么多〃 提交于 2019-12-08 04:13:36
问题 I have a program that uses PyKeyboard.tap_key() to send keystrokes to another application that I'm automating (the application can't be automated any other way, unfortunately). I run it on a remote Windows computer, which I access through Remote Desktop. PyKeyboard.tap_key() works well while I'm connected, but if I disconnect from the Remote Desktop session, keystrokes are no longer delivered. Another question: Is disconnecting the remote session equivalent to "Log off->Switch User"? I assume

Access to GUI on remote machine using PowerShell and WinRM

随声附和 提交于 2019-12-08 03:26:24
问题 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. 回答1: As far as I understand begining in Vista Microsoft block acces to the interactive desktop from a service. To make

WTSOpenServer returns “access denied”

坚强是说给别人听的谎言 提交于 2019-12-08 02:10:55
问题 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. 回答1: Check the value of

Installing PFX certificate on a different user

天涯浪子 提交于 2019-12-07 19:16:58
问题 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);