Deny RDP and logon locally for admin account

Andreas 1,301 Reputation points
2020-08-11T08:38:22.537+00:00

Hi,

We have a service account that needs to be added to the local administrators group on machines due to an application.
Is there a policy I can set so that the account is not able to RDP to the machine ?
The user should only be a service user and not a user that can sign in.

Thanks for reply

Andreas

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,012 questions
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 33,466 Reputation points
    2020-08-11T21:28:46.397+00:00

    Use a Managed Service Account.

    managed-service-accounts-understanding-implementing

    Bing Search MSA

    If that is not an option, then grant your account "logon as service", and then fix the security permissions on files/folders that the service accesses so that you don't need to grant the account full administrator rights.

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,336 Reputation points
    2020-08-12T05:00:22.093+00:00

    Hi,

    Is there a policy I can set so that the account is not able to RDP to the machine ?

    You may try to assign the account with group policy: Deny log on through Remote Desktop Services

    1. Start | Run | Gpedit.msc if editing the local policy or chose the appropriate policy and edit it.
    2. Computer Configuration | Windows Settings | Security Settings | Local Policies | User Rights Assignment.
    3. Find and double click "Deny logon through Remote Desktop Services"
    4. Add the user and / or the group that you would like to dny access.
    5. Click ok.
    6. Run gpupdate /force /target:computer for this setting to take effect.

    -----Please can click “Accept as answer” if any of above reply is helpful-------

    Thanks,
    Jenny

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.