Solved

Remote desktop connection script

Posted on 2013-06-07
6
441 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

832 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