Na política de grupo local (gpedit.msc) ou em uma política de grupo real, você pode definir essas configurações.
Computer Configuration > Windows Settings > Security Settings > Local Policies > Users Right Assignment > Deny Log on Locally
Deny log on locally
This security setting determines which users are prevented from logging on at the computer. This policy setting supersedes the Allow log on locally policy setting if an account is subject to both policies.
Important
If you apply this security policy to the Everyone group, no one will be able to log on locally.
Default: None.
Computer Configuration > Windows Settings > Security Settings > Local Policies > Users Right Assignment > Log on as a Batch Job
Log on as a batch job
This security setting allows a user to be logged on by means of a batch-queue facility and is provided only for compatibility with older versions of Windows.
For example, when a user submits a job by means of the task scheduler, the task scheduler logs that user on as a batch user rather than as an interactive user.
Default: Administrators
Backup Operators.
essas duas configurações devem cumprir o que você deseja fazer.