RemoteDesktop | Remote Desktop Sharing V2

 by   smasherprog C++ Version: Current License: No License

kandi X-RAY | RemoteDesktop Summary

kandi X-RAY | RemoteDesktop Summary

RemoteDesktop is a C++ library. RemoteDesktop has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

After building, run the server, then run the viewer. In the dialog box, enter 127.0.0.1 and press connect. Please Note, that when connected to yourself, you cant really do much because the keyboard and mouse will goto the viewer, which will send to the server so control is a bit strange. NOTE: IF YOU RUN THE SERVER, IT WILL INSTALL ITSELF AS A SERVICE IF IT HAS SUFFICENT PRIVILEGES!!! This is by design... If you really want to test this, get another machine and run the server on it, then use the viewer to connect to that IP address. VMPlayer is free and can get you up and running fast with another machine to test this on.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              RemoteDesktop has a low active ecosystem.
              It has 47 star(s) with 37 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              RemoteDesktop has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of RemoteDesktop is current.

            kandi-Quality Quality

              RemoteDesktop has no bugs reported.

            kandi-Security Security

              RemoteDesktop has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              RemoteDesktop does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              RemoteDesktop releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RemoteDesktop
            Get all kandi verified functions for this library.

            RemoteDesktop Key Features

            No Key Features are available at this moment for RemoteDesktop.

            RemoteDesktop Examples and Code Snippets

            No Code Snippets are available at this moment for RemoteDesktop.

            Community Discussions

            QUESTION

            Powershell Tables & Counts
            Asked 2021-Apr-08 at 19:52

            The Command Get-RDUserSession gives me a Perfekt view of Connected Users by Server an even the Session State. But i would like to Group those Outputs in a new Variable

            What i like would be an Output

            ...

            ANSWER

            Answered 2021-Apr-08 at 19:42

            Try out counting the properties within the Group property of each group:

            Source https://stackoverflow.com/questions/67010474

            QUESTION

            PowerShell terminate all RDP sessions of a user
            Asked 2021-Mar-05 at 13:26

            I need a script that terminates all RDP sessions of an AD user. Only the username should be given, whereupon the script terminates all RDP sessions of this user (if necessary also enforces them).

            Unfortunately, the Get-RDUserSession cmdlet does not work (the ConnectionBroker cannot be found). Unfortunately, I cannot process the result of the CMD command qwinsta in PowerShell.

            Any ideas or tips?

            Thank you.

            ...

            ANSWER

            Answered 2021-Mar-04 at 13:16

            You can create custom objects from qwinsta's output, filter them and use rwinsta to kill the session.

            Source https://stackoverflow.com/questions/66474779

            QUESTION

            Unable to capture workstations details with Empty group
            Asked 2020-Aug-08 at 05:23

            I have the below code to capture members of local group named Remote Desktop and provide a report of total workstation and number of workstation with RDP users configured. But somehow it fails to capture the machine details if the local group Remote Desktop have no members.

            I even tried if($members -eq $null) to capture workstation list but no luck. Any help will be much appreciated.

            ...

            ANSWER

            Answered 2020-Aug-08 at 05:23

            Thanks Doug for the edit. I have managed to get the null group with the below

            Source https://stackoverflow.com/questions/63290475

            QUESTION

            How can i check if the task is running on my User?
            Asked 2020-Jul-06 at 11:11
            $a = 1
            while($a = 1){
                $explorer = Get-Process explorer.exe -ErrorAction SilentlyContinue -IncludeUserName
                if ($explorer.Administrator) {
                }
            
                else{
                    start explorer
                }
                
                timeout 10
            }
            
            ...

            ANSWER

            Answered 2020-Jul-06 at 11:11

            Try Get-Process with -IncludeUserName

            Source https://stackoverflow.com/questions/62753348

            QUESTION

            How to use SharePointPnpPowerShellOnline PowerShell module in Azure DevOps?
            Asked 2020-Mar-02 at 11:41

            I am failing to use the SharePointPnpPowerShellOnline PS Module as part of my release pipeline. We are using Azure DevOps with a hosted build agent on a Azure VM. I want to accomplish uploading build artifacts into Microsoft Teams/Sharepoint.

            • I installed SharePointPnpPowerShellOnline on the server (under the account that the DevOps build agent operates with), yet the build agent fails to execute the script on the first line that uses said module (a call to Connect-PnPOnline -Url https://... -Credentials ...). Error message: "Connect-PnPOnline : The term 'Connect-PnPOnline' is not recognized as the name of a cmdlet, function, script file". So it behaves as if the module is not installed at all.
            • yet when I log onto the server (with the correct account), the module is found and I can execute Connect-PnPOnline succesfully.
            • the used Azure DevOps pipeline task is "PowerShell".

            Shouldn't the build agent be able to find the installed module, as I installed it for its user?

            Edit: I did some more "debugging", namely:

            • logging the Username the script is running under by [Environment]::UserName, to make sure I installed the module for the right user. result: matches the expected user.
            • Listing the installed modules by Get-InstalledModule in my script. Once it is executed in the Release pipeline by the agent it yields an empty list. yet executing the same script on the VM (via RemoteDesktop) yields the installed modules

            My guess is I'm doing a stupid beginner mistake because I haven't that much experience with PowerShell...

            ...

            ANSWER

            Answered 2020-Mar-02 at 11:41

            Answering my own question: In the end I just installed the Module again as part of the script by prepending the following two lines. Of course I'd be happy if somebody could explain why it didn't work the other way...

            Source https://stackoverflow.com/questions/60484666

            QUESTION

            C++ program service
            Asked 2019-Oct-14 at 12:18

            I have a personal server and I want to add some new functions to it.It is a Windows server running Windows Server 2019.The core program is wrote by me in c++,but it is just a core and can't access the Internet.It should receive a string from a webpage and return a string to it.My old way is using ASP create a file to storage the string from webpage and use my c++ program to overwrite it.But if the server get two tasks at same time,the result will become a mess.My ISP blocked port 80 so I'm using port 8012 to run my website.My router can't map to many port outside (There also a FTP service and a mail service in the server.) so I can only use the port 8012.What should I do?Should I write a C++ HTTP server? Server Info:

            Service port-inside port-outside software

            WEB 80 8012 IIS

            FTP 21 21 Serv-U

            FTP-pasv 6000-6009 6000-6009 Serv-U

            POP3 110 9110

            SMTP 25 9025

            RemoteDesktop 3389 3389 Windows

            ...

            ANSWER

            Answered 2019-Oct-14 at 12:18

            I have solved my questions.I am using some AJAX code to add a time sign and random numbers to avoid request crash. Here are the AJAX code:

            Source https://stackoverflow.com/questions/58246983

            QUESTION

            Running commands as logged on user (remotely)
            Asked 2019-Jul-31 at 13:17

            Thought I would share this quick function I made for myself, feel free to adapt it and improve it according to your needs.

            Sometimes you want to run commands as the logged on user of a remote computer.

            As you know, some commands show output for the user who runs it and if you run the same command with Invoke-Command, it won't return the user's information, but yours). Get-Printer is an example amongst many others.

            There is no easy, quick way of running commands as the logged on user natively without any third-party apps like PsExec or others so I made this quick function that uses VBS, PS1 and Scheduled Task to make it happen.

            It runs completly silently for the user (thanks to the VBS) and the output is shown in your console. Please note it assumes the remote computer has a C:\TEMP.

            Created in a Windows 10, powershell v 5.1.17763.503 environement.

            I don't pretend it's final and perfect, it's the simplest way I found to do what is needed and I just wanted to share it with you guys as it can be very useful!

            Check the comments for explanation of the code and feel free to use it as you wish. Please share your version as I'm curious to see people improve it. A good idea would be to make it support multiple computers, but as I said it's a quick function I did I don't have too much time to put into refining it.

            That being said, I had no problems using it multiple times as is :)

            *Output returned is in form of a string, if you want to have a proper object, add '| ConvertFrom-String' and play with it :)

            PLEASE NOTE: The surefire way of grabbing the username of who is currently logged on is via QWINSTA (since Win32_ComputerSystem - Username is only reliable if a user is logged on LOCALLY, it won't be right if a user is using RDP/RemoteDesktop). So this is what I used to grab the username, however, please note that in our french environement the name of the username property in QWINSTA is "UTILISATEUR",so you have to change that to your needs (english or other language) for it to work. If I remember correctly, it's "USERNAME" in english.

            On this line:

            ...

            ANSWER

            Answered 2019-Jul-31 at 13:17
            function RunAsUser {
            
            Param ($ComputerName,$Scriptblock)
            
            #Check that computer is reachable
            Write-host "Checking that $ComputerName is online..."
            
            if (!(Test-Connection $ComputerName -Count 1 -Quiet)) {
            Write-Host "$ComputerName is offline" -ForegroundColor Red
            break
            }
            
            #Check that PsRemoting works (test Invoke-Command and if it doesn't work, do 'Enable-PsRemoting' via WMI method).
            #*You might have the adjust this one to suit your environement.
            #Where I work, WMI is always working, so when PsRemoting isn't, I enable it via WMI first.
            Write-host "Checking that PsRemoting is enabled on $ComputerName"
            if (!(invoke-command $ComputerName { "test" } -ErrorAction SilentlyContinue)) {
            Invoke-WmiMethod -ComputerName $ComputerName -Path win32_process -Name create -ArgumentList "powershell.exe -command Enable-PSRemoting -SkipNetworkProfileCheck -Force" | Out-Null
            
                do {
                Start-Sleep -Milliseconds 200
                } until (invoke-command $ComputerName { "test" } -ErrorAction SilentlyContinue)
            }
            
            
            #Check that a user is logged on the computer
            Write-host "Checking that a user is logged on to $ComputerName..."
            $LoggedOnUser = (qwinsta /SERVER:$ComputerName) -replace '\s{2,22}', ',' | ConvertFrom-Csv | Where-Object {$_ -like "*Acti*"} | Select-Object -ExpandProperty UTILISATEUR
            if (!($LoggedOnUser) ) {
            Write-Host "No user is logged on to $ComputerName" -ForegroundColor Red
            break
            }
            
            
            #Creates a VBS file that will run the scriptblock completly silently (prevents the user from seeing a flashing powershell window)
            @"
            Dim wshell, PowerShellResult
            set wshell = CreateObject("WScript.Shell")
            Const WindowStyle = 0
            Const WaitOnReturn = True
            For Each strArg In WScript.Arguments
            arg = arg & " " & strArg
            Next 'strArg
            PowerShellResult = wshell.run ("PowerShell " & arg & "; exit $LASTEXITCODE", WindowStyle, WaitOnReturn)
            WScript.Quit(PowerShellResult)
            "@ | out-file "\\$ComputerName\C$\TEMP\RAU.vbs" -Encoding ascii -force
            
            #Creates a script file from the specified '-Scriptblock' parameter which will be ran as the logged on user by the scheduled task created below.
            #Adds 'Start-Transcript and Stop-Transcript' for logging the output.
            $Scriptblock = "Start-Transcript C:\TEMP\RAU.log -force" + $Scriptblock + "Stop-Transcript"
            $Scriptblock | out-file "\\$ComputerName\C$\TEMP\RAU.ps1" -Encoding utf8  -force
            
            #On the remote computer, create a scheduled task that runs the .ps1 script silently in the user's context (with the help of the vbs)
            Write-host "Running task on $ComputerName..."
            Invoke-Command -ComputerName $ComputerName -ArgumentList $LoggedOnUser -ScriptBlock {
                param($loggedOnUser)
            
                $SchTaskParameters = @{
                TaskName = "RAU"
                Description = "-"
                Action = (New-ScheduledTaskAction -Execute "wscript.exe" -Argument "C:\temp\RAU.vbs C:\temp\RAU.ps1")
                Settings = (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable -DontStopOnIdleEnd)
                RunLevel = "Highest"
                User = $LoggedOnUser
                Force = $true
                }
            
                #Register and Start the task
                Register-ScheduledTask @SchTaskParameters | Out-Null
                Start-ScheduledTask -TaskName "RAU"
            
                #Wait until the task finishes before continuing
                do {
                Write-host "Waiting for task to finish..."
                $ScheduledTaskState = Get-ScheduledTask -TaskName "RAU" | Select-Object -ExpandProperty state
                start-sleep 1
                } until ( $ScheduledTaskState -eq "Ready" )
            
                #Delete the task
                Unregister-ScheduledTask -TaskName "RAU" -Confirm:$false
            }
            Write-host "Task completed on $ComputerName"      
            #Grab the output of the script from the transcript and remove the header (first 19) and footer (last 5)
            $RawOutput = Get-Content "\\$ComputerName\C$\temp\RAU.log" | Select-Object -Skip 19
            $FinalOutput = $RawOutput[0..($RawOutput.length-5)]
            
            #Shows output
            return $FinalOutput
            
            
            #Delete the output file and script files
            Remove-Item "\\$ComputerName\C$\temp\RAU.log" -force
            Remove-Item "\\$ComputerName\C$\temp\RAU.vbs" -force
            Remove-Item "\\$ComputerName\C$\temp\RAU.ps1" -force
            
            }
            
            #____________________________________________________
            
            #Example command
            #Note: Sometimes Start-Transcript doesn't show the output for a certain command, so if you run into empty output, add: ' | out-host' or '| out-default' at the end of the command not showing output.
            $Results = RunAsUser -ComputerName COMP123 -Scriptblock {
            get-printer | Select-Object name,drivername,portname | Out-host
            }
            
            
            $Results
            
            #If needed, you can turn the output (which is a string for the moment) to a proper powershell object with ' | ConvertFrom-String' 
            

            Source https://stackoverflow.com/questions/57291714

            QUESTION

            PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777216 bytes)
            Asked 2019-Apr-19 at 22:02

            I ran composer install on my 16 GB Mac Book Pro, and I got this

            ...

            ANSWER

            Answered 2018-Dec-20 at 14:22

            Your machine might have 16GB installed but PHP is not configured to use it. Locate your php.ini file (on OSX with PHP installed by Homebrew its at /usr/local/etc/php/$PHP_VERSION/php.ini. Open it with an editor and search for memory_limit. There you specify how much memory a PHP process can use. If you like to give it all change the value to -1.

            $PHP_VERSION is the version of your PHP installation. To figure out which is installed use php --version.

            Source https://stackoverflow.com/questions/53870204

            QUESTION

            Homebrew Uninstall Issue/Unsure if I deleted important files
            Asked 2019-Feb-11 at 03:05

            I was having issues with Git on my Mac and eventually found a thread that said uninstalling Homebrew might help.

            I found the uninstall command and pasted it into Terminal.

            ...

            ANSWER

            Answered 2019-Feb-11 at 03:05

            /usr/local belongs to you, so the only thing you can mess up by deleting stuff there is stuff that you yourself installed. You cannot possibly mess up anything important to the fundamental operation of your Mac, since on a clean installation /usr/local is effectively empty.

            Moreover, your installation of Homebrew is effectively just a copy of this:

            https://github.com/Homebrew/brew

            Whatever you see on that page was simply reflected right into your usr/local (including the Library folder that worries you).

            Finally, the number of files involved is not an indication of anything. After all, consider that the .git directory contains the entire repository history of homebrew itself. It's easy to see how that alone could consist of thousands of files.

            Source https://stackoverflow.com/questions/54623335

            QUESTION

            Why the client will block while fetching image continually from server with Netty?
            Asked 2018-Oct-31 at 08:27

            I want to show remote desktop on the client in real time. That is server sending screenshot continually and client painting the image on the panel at the same time. It works well at the beginning, but the client will block after a few minutes and the server is normally.

            The class CaptureImage defined for screenshot. It has two attributes, length and content.

            ...

            ANSWER

            Answered 2018-Oct-31 at 08:27

            This is because the server is sending the images too fast and the client is slow. In this case the client will go out of memory because of the client's inbound netty buffer getting filled.

            A better design for the server code would be to await an ack from the client (within a given time period) before sending the next message. Client could send an ack when it has finished processing the current message.

            Source https://stackoverflow.com/questions/53078512

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install RemoteDesktop

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/smasherprog/RemoteDesktop.git

          • CLI

            gh repo clone smasherprog/RemoteDesktop

          • sshUrl

            git@github.com:smasherprog/RemoteDesktop.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link