Enable Remote Desktop Connections with PowerShell

What is the easiest way to enable remote desktop connections on Windows 7, with powershell?

Use Shay Levy's "Remote Registry PowerShell Module", and modify the value of the "fDenyTSConnection" value in the
key "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" on the remote box to "0"
The Windows 7 box will need to be rebooted before it will take effect.
See http://oreilly.com/windows/archive/server-hacks-remote-desktop.html
Or, grab Michal Gajda's script "Enable-RDP.ps1" in the gallery :)
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})

Similar Messages

  • Remote Desktop Connection with WRT54G from Novice

    Well, I’m usually pretty good at using Google and forums to eventually figure out how to fix my problem but this one absolutely has me stumped and I’m hoping someone out there has an answer for me. For the record, I have probably a beginner/intermediate knowledge of computers so if you know the answer to my problem, try to explain it simply! ****TO ANYONE WHO TAKES THE TIME TO READ THIS THING AND CAN OFFER SOME ADVICE-THANK YOU!!!!***
    THE PROBLEM
    I would like to be able to use Remote Desktop to log into either of my home computers from basically any computer on the internet.
    THE SETUP
    I have two computers, whose names are LAPTOP and DESKTOP that are both running Windows Vista Ultimate. Both of the computers are connected to a Linksys WRt54G Router ; one wired, the other wirelessly. The Linksys router is then connected to a Westell DSL Modem that connects to AT&T’s internet service.
    SETTINGS
    My DSL service only provides me with a dynamic IP address so I signed up with no-ip.com. Through that site, I bought a domain name and downloaded their small program that runs in the background of my desktop computer. The program checks what my IP address is every couple of seconds and if it changes, it notifies their server so that anyone who types in my domain name is directed to the new IP address.
    ROUTER (Firmware 4.20.6)
    Basic Setup Page: The Router Name is just the model number, the Server Name is my DSL provider and the Domain Name is the name I chose and registered with No-IP.com. (www.mydomainname.com, for example.) DHCP Server is ENABLED. DDNS Service is DISABLED. Under Advanced  Routing, it is set in GATEWAY mode.
    Security Page: Firewall Protection is ENABLED. Block Anonymous Internet Requests is NOT checked. Filter Multicast, Filter Internet NAT Redirection and Filter IDENT ARE checked.
    Applications and Gaming Page: I chose two port numbers, one for each computer that I want to connect to. On the first line, I have Application: RDP, Port Range: 49200 to 49200, Protocol: Both, IP Address (The IP address of the computer I want to connect to) and the Enable box IS checked. [I did the same thing with the second line for the other computer, but with a different port number and that computer’s IP address)
    Administration Page: Access Server is HTTP, Wireless Access Web is ENABLED, Remote Management is ENABLED through Port 8080, and UPnP is ENABLED.
    WINDOWS VISTA SETTINGS
    First, I went to the Remote Desktop Settings of the target computer and ENABLED Remote Desktop Connection and allowed computers running any version of Windows. I also confirmed that the box labeled “Allow This Computer To Be Controlled Remotely” WAS checked. I then made sure that I had a user name, it had a password associated and that it had Administrator priveledges. I went back to the Remote Connections screen and added the user name as being allowed to connect. (I think this is redundant since it’s both the owner of the computer and has Administrator Status.)
    Next, per Randomly Googled Internet Advice, I went into the registry and changed the port number that Remote Desktop listens for incoming connections to Port 49200 to match the router settings. [Registry Entry that I modified was: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
    Finally, I went to the Windows Firewall and Added (opened) port 49200 for use as a Remote Connection. I kept the protocol as TCP and confirmed the scope was set for Any Computer.
    CURRENT STATUS
    If I go to Explorer and enter my IP address with a colon and the specify port 8080, I can get the login screen for the router. Same thing happens if I just enter my domain name and port 8080. However, if I switch the 8080 port and use one of the ports I chose (49200), it cannot connect, either using the Public IP address or the domain name. (I’m trying to connect using a wireless card and not connected to my local network so I know it’s the same as if I was anywhere else.)
    I’m not sure why it won’t let me connect; it feels like the router will not allow the connection to pass through it to the port I’m asking it to forward to. I’m guessing someone out there who took the time to read it is shaking their head at all the information I provided and knows the one dumb thing I missed!
    Thanks again!

    I'm attempting to do the same thing with my home network. the only differences are that i have cable internet from comcast and i'm running vista business. my router is the wrt54gs. i'm assuming that the web page is similar for adjustmants. To be honest i cannot figure out how to do a remote destop too. so i went to www.logmein.com and installed the program. once installed to to every computer you want to have access too and log into the website. then click on the add computer icom. full control app sharing etc... even better when you connect you have the option to deactivate the local host mouse and screen to prevent anyone seeing what your doing.
    If you resolve the router issue would you let me know. plz thanks
    Forest

  • Having trouble maintaining remote desktop connection with Mavericks.  What is this about needing RDC 3.7.1 with Mavericks.  I downloaded RDC 3.7.1 but it does not replace RDC 2.1.0 previously installed.

    Having trouble maintaining remote desktop connection with Mavericks.  What is this about needing RDC 3.7.1 with Mavericks.  I downloaded RDC 3.7.1 but it does not replace RDC 2.1.0 previously installed

    Lucky you, it did not work for many users (which as it should be) so MS produced a new version, for ML and Mavericks.
    It's in the App Store, for free.
    FYI, I assume that you were attempting to post a picture, no one can see it (except maybe you) because it is on your computer rather than the forum server.
    file:///Users/dbrant/Desktop/About%20Apple%20Remote%20Desktop%203.7.1.webloc
    Use the small camera icon in the editor toolbar to post it.
    It also looks like you attempted to use Apple Remote Desktop, which does not do Windows.

  • Using a remote desktop connection with the Macbook pro.

    I use the remote desktop connection on the Macbook pro and am unable to exchange info between the mac and the remote connetion windows. For example, if I am writing an email from the remote connection and want to attach a document, photo etc. that I created on the Mac, it just doesn't work. It seems like the Mac and the desktop connection are completely seperated eventhough they are both on the screen in front of me. the systems I use for work are not Apple compatible and will not work on anything other than windows explorer and in my case the remote desk top connection. Any ideas!

    Welcome to Apple Discussions
    Try running in 'ClamShell' mode (MacBook Pro lid closed and using an external keyboard and mouse) with the Gateway connected and then run System Preferences/Displays, it should show then ...
    My 1920x1080 monitor shows the following:

  • Remote Desktop Connection with single Ethernet cable

    Hi,
    I'd like to be able to use Microsoft's Remote Desktop Connection app to connect to one of my XP machines with my PowerBook. I can do this when everything is running on my home LAN, but I'd like to be able to connect with just a single Ethernet cable connected from my PowerBook's network port to the network card of the XP machine. This would allow me to use the PowerBook as a monitor when I bring the XP machine offsite to run tests (I'm a computer technician). I've played with the Network settings in the System Preferences, but things that would seem to me to work don't work. Any suggestions would be appreciated.
    Thanks,
    Ken

    When you're on the road, and these are the only machines connected to each other, you will either need to configure them to have static IP's in the same subnet
    192.168.0.2 and 192.168.0.3
    255.255.255.0
    no gateway/router IP required.
    THey'll need to be in the same workgroup (but you probably have that already)
    ...or...
    Configure the XP machine to be the DHCP server, and the mac to get IP from XP.
    (first option is probably better.)
    Might need a crossover cable. Might not.

  • Remote Desktop Connection With Custom Certificate on Windows 8.1 fails

    I'm trying to establish a secured remote desktop connection without success.
    The setting
    There are some local pcs with windows 8.1 Pro and windows 7 Pro, no server-edition. I've created a self signed ca-certificate with openssl for Windows. I used this to sign custom certs for the local windows-pcs, which are installed at mmc -> certificate
    snap-in for local computer -> My Certificates -> Certificates. The networkdriver has the right to read the key. The sha1-fingerprint of the custom signed certs are registered at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
    -> SSLCertificateSHA1Hash = sha-1 hash of the custom local cert. Additionally the revocation-list is restrained to the local list by setting HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Credssp -> UseCachedCRLOnlyAndIgnoreRevocationUnknownErrors
    = 1.
    The results
    The connection form win 8.1 to win 7 works. The connection info confirms that it is a veryfied connection. The connection to windows 8.1 fails after entering the credentials with error: No connection possible. Network Level Authentication is set, but other
    level don't work as well. The log (Event Views -> Applications and Services Logs -> Microsoft -> Windows -> TerminalServices-RemoteConnectionManager -> Admin) says "Remote Desktop Services has taken too long to load the user configuration
    from server" and "The Local Security Authority Cannot Be Contacted" (error 0x80090304)
    Aditional information
    The connection via linux (remmina) works for win 7 and win 8.1, but I have no information about the encryption. It is the same with the Microsoft Remote Desktop Tool for Android.
    Maybe it is accociatet with a different cert handling by Windows 8.1 but I couldn't find further information or a solution in the internet.
    Best regards
    abditus

    I solved the problem!
    The default openssl certificate signature algorithm is md5RSA but it doesn't work with windows 8.1.
    It is at least sha1RSA needed.
    By adding "default_md = sha1" to the openssl.cnf you create certs with sha1RSA and it works fine.
    Beste Gegards
    abditus

  • Apple Remote desktop connection with different internet network

    I did purchase "Apple Remote Desktop"in mac app store, it works well in the same wifi's network but when i try to use different network, but i won't connect.
    It said " Please make sure Screen Sharing in the System preference", but it won't works as well.
    Please help
    Mac OS: 10.9.1
    Apple Remote Desktop: 3.7.1

    The first thing I'd suggest is that you talk to your network support group and make sure that the necessary IP ports, primarly 3283 and 5900, are open between the two networks. If those are blocked, ARD can't connect.
    Hope that helps.

  • Remote desktop connection not working in windows 7 Pro x64 bit sp1 3389 port not working

    i have still facing same problem in last two week in my  system RDC not working . i have installed in my system windows 7 x64 bit Pro sp1 then i check 3389 port working or not  in my system use the command netstat -a -o command in
    command prompt but this is  my bad luck  its not woking in my machine after i have decide to change RDC listening port via registry  i have change it 3389 to 3391 after restart my system,  and
    after again testing using same command but no any change again rdc not listening . After i have  search this issue on search engine google bing and microsoft , i have found more solutions  but i have try one
    uninstalled two microsoft updates first is kb  KB2621440 second is KB2667402 and after again restart my system and again installed KB 2667402 But not change i have already enabled Remote Desktop connection in windows 7 and select the option
    any version computer running , i have try  three and four time enable  disable remote desktop connection in my machine . but not change i have all windows firewall disable and uninstalled anti virus they intalled in my machine , and using the Mcafee
    stinger tools to scan my machine to remove virus but stinger is not found any thread in system.  ihave already run this command in my system sfc /scannow  Please Can you help me to fix  this issue.

    Hi,
    When you try to start the Remote Destop Connection, what errors it showed out?
    Could the other PCs connect this PC with the RDC?
    So you have read this blog?
    RDP connections might fail due to a problem with KB2621440 - MS12-020
    Did you reinstalled the KB2621440?
    Besides, did you follow this guide to enable the RDC connection?
    Connect to another computer using Remote Desktop Connection
    And also this guide?
    Why can’t I connect using Remote Desktop Connection?
    Please take a check with those settings again.
    Best regards
    Michael Shao
    TechNet Community Support

  • Remote control fails if remote desktop connection has occurred...

    Windows 7 64 bit. ZCM 11.2.
    ZENworks Adaptive Agent Version: 11.2.0.16117
    I enabled remote desktop connections to the Windows 7 PC. I can
    remote control it through ZCM without any problems. But if someone
    makes a remote desktop connection to that PC, I can no longer remote
    control it until after the PC is restarted (haven't tested further to
    see what else will fix it). When I attempt to remote control through
    ZCM, it eventually times out with this error: "Communication error.
    It is likely that some other application is running on the specified
    port."
    Any known fix or workaround for this?
    Thanks,
    Ken

    Lindsey,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Would anyone know a way to get ASIO4all to operate through the Remote Desktop Connection Application?

    Sound problem... when I try to use FL Studio via Remote Desktop Connection with a Windows XP laptop.

    Hi Crimsonrain,
    What is the model number of your router? 

  • Trouble with Remote Desktop Connection to work PC

    Note that I am trying to log into my work PC from my mac at home. My company recently announced we could log in from home with a mac into our work PC. they can't get it to work so I thought I'd try here. We use a mobile site on Safari to obtain a network connection - it launches a program called network connection and I appear to have that network connection (although very little data is being sent and received). I am then supposed to launch a program called Remote Desktop Connection (this program was installed from steps I ran through the first time I logged in through the mobile site, it is version 1.0.3), but when I do, it will not connect and the error message is that remote connection is not enabled, network is too busy, etc). However, the guys at the support desk using PCs can log into my work computer. The only info that's mandatory to input on the Remote Desktop Connection is my work computer name. I don't think this is the issue, because if I purposefully use an incorrect name for my work computer, the error message is different, stating it can't find my (work) computer. I also installed the most recent version of Java for 10.3.x The only issues I can think of are a) this won't work with 10.3.9, although I doubt this is it as the Remote Desktop Connection program appears a few years old, OR there is some firewall issue on my mac. I doubt that this is it, as I assume the mac's firewall protections are to prevent others from remotely logging into my mac, not prevent me from using my mac to remotely log into my work PC. Also, I don't use any third party firewall or other protection stuff on my mac other than whatever comes stock. if you've read this far, thanks, and any comments appreciated! am trying to log in using my dual 1.8 g5 with 1.5g memory using 10.3.9

    Are you by any chance with a major retailer? My company just did the same thing. We used to connect via a Virtual Drive connection, but they took that away and went to RDC.
    I had problems at first logging in as well. It was acting as if my password was wrong, but I knew that wasn't the case. I finally typed the password in the UserName area and found the problem!
    I had two special Characters followed by a capital letter. For instance !@Axxxxxxxx. When I typed the password, I would push and hold the 'shift' key for the first three letters. When typing that in the "user name" field, it showed as !2axxxxxxx. You have to release the 'shift' key and repress it for each letter.
    I hope this helps you!

  • Remote Desktop Connection Times Out With "Can't Connect" From One Specific Computer Only

    This is an odd one... I manage several servers from this computer. This particular server, 2012 Essentials, won't allow for remote desktop connections to either the server or attached workstations. I can get into the server's remote web page but when I
    attempt a remote desktop connection, it hangs on "Initiating remote connection..." and then times out with the error response that remote desktop can't connect. But... if I attempt the same connections from any other computer, I am able to get in
    and utilize remote desktop. Does this mean that there is a certificate issue with the computer unable to connect and if so, how does one remedy this? Or is it some other issue? I've attempted everything within my technical ability to no avail. Any suggestions
    are greatly appreciated.

    Hi,
    Before going further, would you please let me know the RDC version that used in the problematic computer? Was it the same with other computers?
    Please temporarily disable firewall and then check if this issue can be solved. Based on your current description, it’s hard to say the root reason of this issue.
    So, I suggest that you should check relevant log files and get some clues. It will help us to narrow down and solve your issue.
    Hope this helps.
    Best regards,
    Justin Gu

  • Easy print not working on a 64 bit Windows 8.1 client with Remote Desktop connection version 8.1

    Easy print is not working on a 64 bit Windows 8.1 client with Remote Desktop connection version 8.1 . Printers dont get redirected when you connect to the terminal server. The server we are connecting to has Windows 2008 server.  On 32 bit Windows
    7 and windows XP clients Easy print is working fine and printers get redirected in terminal server.

    I am having the exact same problem. Windows 7 works fine, but 8.1 will not redirect printers. Others said to check local policy terminal services settings and my setting are all set as they should.
    I think Windows 8.1 is not telling the terminal server what printers it has.

  • Installation with Remote Desktop Connection

    Hello!
    I've installed OAS 9iR2 Developer Kit through Remote Desktop Connection on W2K SP2. After installation i've very poor perfomance of OAS. I took a look at the running processes and saw that processes like 'nmupm.exe' load CPU on 100%. Response time is also very poor and i can't access to a web management console, but there are no any errors displayed. What is the problem?
    Thanks.

    This is caused by a conflict with .NET installed on your system. See: Release Notes Addendum #13.10: http://otn.oracle.com/docs/products/ias/doc_library/90200win_otn/relnotes.902/addendum/oem.htm#1007067 for solution.
    HTH,
    Ashesh Parekh
    Oracle9ias team

  • Remote Desktop Connection certification issue with Win Server 2008 R2

    When connecting to Windows 2008 server R2, from Windows 7, Vista and Mac OS 10.6.7 via Remote Desktop Connection, i am getting a 'Server Name on the Certificate is Incorrect' error. 
    if i click connect, i can still connect to the machine, due to a 3rd party managing the server, this doesn't look very professional on my part...
    The server is a standalone machine and is not currently on a domain. RDC is only used for management purposes.

    Hi,
    This certificate error is normal, because your client do not trust the certificate which is installed on the terminal server. To avoid this issue,
    you can export the certificate and import this certificate into the client side (computer account).
    Thanks.

Maybe you are looking for