I use GPOs to force the service to remain disabled on my DCs and other servers. Have not had an issue with them restarting on mine.
Permanently disable print spooler service on domain controller
I am using Windows Server 2019 as domain controller. I disable print spooler service as a security measure. But the service starts automatically after some hours. When it checked in event logs it shows that SYSTEM user has started this print spooler service. How can I permanently disable print spooler service on domain controller. Thanks
Windows for business | Windows Server | User experience | Remote desktop services and terminal services
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.
3 answers
Sort by: Most helpful
-
Anonymous
2023-12-19T20:54:54+00:00 -
Anonymous
2023-12-19T21:45:51+00:00 I believe in my example my intention was to prevent anyone (i.e., my admins) from being able to change or start the service. I did that by denying the NT AUTHORITY\INTERACTIVE identity which applies to anyone who logs into the system "interactively".
With that said, I'm sure I've done testing in the past where I started the service (had to remove that deny permission to do so) and when I ran gpupdate it would immediately stop and disable the service again.
I can't imagine any reason your GPO would not work for you unless it somehow was not properly applying to your domain controllers. Did you run a GPResult to validate that it was?
If it was, you could try adding another deny entry but for NT AUTHORITY\SYSTEM, seeing how it is the one restarting your service based on your OP, however I would caution against that because if you ever want to remove that GPO, it may not properly remove it from the DC since I believe that's all done under the SYSTEM identity. May end up locking yourself out of that service entirely.
-Matthew