Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Remote desktop connection script

Posted on 2013-06-07
6
442 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

790 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