Solved

Remote desktop connection script

Posted on 2013-06-07
6
437 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now