Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remote desktop connection script

Posted on 2013-06-07
6
Medium Priority
?
454 Views
Last Modified: 2013-06-14
Hello guys...

I used this script to allow connection to remote desktop connection on client computer..

Disable
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d "1" /f

Enable
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d "0" /f

I know we can also do it via group policy.  I'm using 2003 server as domain controller....

i need a solution to add to this script or another one: I need only administrator who can have access to remote connection...i.e can we add administrator through a batch script....
Or is there another solution...I don't want to do it manually on client's pc...

Thanks for your help////
0
Comment
Question by:techlabtest
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:peter197911
ID: 39228287
Local administrators / domain administrators are automatically member of the remote desktop group of domain computers.

So if you run a reg update by group policy that enabled "Remote Control by Remote Desktop" i think you will be fine.

Also, remember to open a port in the firewall (if it's closed by default)
0
 

Author Comment

by:techlabtest
ID: 39228373
No it' doesn't work!

Thanks
0
 
LVL 5

Expert Comment

by:peter197911
ID: 39231979
Ok,
When you configure remote desktop to : Allow remote connections from all computers.

(in windows, system properties, remote)

Does it work then>?   If it does,  then your reg key way of enabling RDP is not complete.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Accepted Solution

by:
techlabtest earned 0 total points
ID: 39232846
i tried what you told me and it doesn't work....I find a solution to my problem:

do it through  group policy...Under com config, windows settings, security settings, local policies, user rights assignment..Allow log on on through Terminal Services or Remote Desktop Connections..Add the domain admin inside..and it works fine...

Please tell me wht you think before i close that query.

Thanks
0
 
LVL 5

Expert Comment

by:peter197911
ID: 39232882
That sounds like an excellent solution.

Although, i think i would not use the Domain Admin account but a  "Support account" with the proper permissions.

Good to see you find a proper solution. When i'm in a domain environment i will test the thing with the domain admin and access to RDP on a server.
0
 

Author Closing Comment

by:techlabtest
ID: 39246996
I have test my solution in a domain environment and it works...Really nice...
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question