Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8367963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:16:54+00:00 2026-06-09T13:16:54+00:00

In Windows 2003, I can start… Control Panel -> Administrative Tools -> Local Security

  • 0

In Windows 2003, I can start…
Control Panel -> Administrative Tools -> Local Security Policy
Then, if I go to…

Local Policies -> User Rights Assignment -> Deny log on through Terminal Services
… it lets me deny RDP access to a certain user account (even if that account is an admin).

How can I do the same thing from the command line, so I can automate it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:16:55+00:00Added an answer on June 9, 2026 at 1:16 pm

    You should be able to use the reg command to modify the registry key that corresponds to this group policy setting.

    To disable, try this from a batch file:

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

    I’ve wrapped the switches onto multiple lines for readability, make sure to put all that on one line in your batch file. I don’t have access to a Windows 2003 server to confirm those two settings are one in the same but I believe they are. You could use Process Monitor to watch which registry key changes when you change that GP setting to sniff out which one it is in the event that I have the wrong key.

    It appears you can also change this using the NTRights Utility and the SeDenyRemoteInteractiveLogonRight right. The syntax for that would be:

    NTRights.exe -u user +r SeDenyRemoteInteractiveLogonRight
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I start my program automatically if it crashes on windows 2003 server?
Windows 2003/IIS 6... I have a virtual directory on a web site that closely
I have a Windows 2003 Server with IIS, I installed VisualSVN Server on it.
My Server is Windows 2003 and SQL Server 2005 Standard. 3 GB of RAM.
I have a windows 2003 server (WEb edition) which has .net 3.5 sp1 installed
I have a windows 2003 box with an ssh server setup. I have msysgit
I have a Windows 2003 DNS server that forwards on to OpenDNS. I want
In my windows 2003 box, I am not able to create new web applications.
Our inhouse Windows 2003 Server hosts our company's SVN repository. I'm looking for a
I am using Windows 2003 to write some PHP code. I use XAMPP Portable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.