Jump to content
Sign in to follow this  
mashti

How can we actively on the remote computer, Remote Desktop feature?

Recommended Posts

Remote Desktop (RDP), all of us of a technology commonly used in everyday life. The company is an IT employee in the employees' computers in case of distress to live next to the computer instead of going to the trouble in the employee's computer remotely using RDP to connect to the call through this technology is able to help.

 

However, this feature is primarily used for this feature to work, it must be turned. Enter part of your computer's System Properties "Remote" tab when you go to will get two parts, computer systems, and the latter "Remote Desktop" feature shows the situation. As you can see the example below, this feature is closed at this time I "Do not allow the" looks.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

The remote desktop feature of the operating system installation, and comes off as such a situation would not be able to connect to other computers on a computer that. However, the "Allow" in the case that you select the method of remote desktop computers may be able to connect. Of course, this option is off, doğruyor another problem, "How do you go next, this feature can open up the computer?". If we can open this feature makes little sense to just go to the computer would not be a solution. Many admin a remote registry change by doing this feature opens today, and this solution works quite as well, but in this article, and if you want to talk about it much easier to manage hundreds of these methods on computer with the ability to open this feature using a single command.

 

The secret is in the WMI, WMI, respectively, with the remote desktop for now let's look at what we can do it, respectively. First of all, I used to test the command-line tool in WMI on the client via the GUI by using the above command line can do is let's open a remote desktop feature.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

ReturnValue "0" means that we have not returned the error. Now repeat the process result to the GUI successfully in the "Remote" tab, let's check. Below you can see the remote desktop to allow the show now.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

However, this command you open a remote desktop feature ran through the computer, so it does not benefit, as is now going a step forward again to a remote computer via WMI, let's open a remote desktop feature. To show this, I use two computers, "DC4" commands to the server I'll run, "clientc" I'll open the remote desktop feature of Windows 7 will be the client.

 

First, "DC4" through the use mstsc.exe "clientc" to try the remote desktop connection. As you can see, "DC4" We have received an error while trying to connect through.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Now again, "DC4" fame and run the following command via the command line (WMIC command used previously to /node key, add the command to work here we want to enter the computer name). As we can see below the command worked successfully and is now "clientc" we need to be able to connect to using remote desktop.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

To test the connection is working again by using the exceed mstsc.exe "clientc" trying to connect to. As we can see below, "clientc" remote access computer is no longer possible.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

It will take a step further, we have (to say what steps), for example, our sphere of influence in the faces on the computer we'd like to open a remote desktop feature, what can we do? Hundreds of times by hand to run the same command again will be a time consuming process. The solution will make a very simple process using the same command again, and that the core of the work only on computers that we want to merge with a for loop is possible to implement this process.

 

First we need to do a TXT file, respectively, enter the name of the computers we want to open a remote desktop feature and it will be enough to save the file after the following command çalıştırmamız. For example, the remote desktop and would like to open all the windows 7 clientlarda list of computers Windows 7 "win7.txt" I saved in a file.

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

All the clients no longer want by using the above cycle can open a remote desktop feature, lets say you want to do the opposite. In this case, changing the location of zero and one (AllowTSConnections = "0" call SetAllowTSConnections "1") by applying the same method to turn off all the light possible to the remote desktop feature.

Share this post


Link to post
Share on other sites

Hello,

 

Nice article and if I may add another thing, you can also deploy this command with Config Manager 2007:

 

14scg08.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...