Services Disabled in GPO are Still Running.

Matt 1 Reputation point
2024-02-16T17:54:14.9666667+00:00

I've created a Group Policy Object nested at the top of the tree and applied a test Security Group containing one PC. In the GPO I did: Computer Configuration > Policies > Windows Settings > Security Settings > System Services In there I set 4 Cisco Secure Client *(formerly AnyConnect) services to "Disabled" and also gave the user *(INTERACTIVE) permissions to re-enable the service if they need to. I can see from the output of gpresult /r that the PC is receiving the policy under Computer Policies. But after MANY reboots, the services are never stopped. Any ideas why these services wouldn't be getting stopped? If I were to manually disable these services they are stopped just fine and remain disabled after reboots. So not sure why the GPO isn't doing what it's supposed to. User's image

We also just tried this using a Powershell script, and that seemed to work on my second reboot. As a Startup script. But, I'd really like to know why the actual service disabling isn't working, using the method in the screenshot. Thanks in Advance,
Matt

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,821 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 31,056 Reputation points Microsoft External Staff
    2024-02-19T03:10:39.6966667+00:00

    Hello Matt,

    Thank you for posting in Q&A forum.

    Based on the description "But after MANY reboots, the services are never stopped.", does the problem occur only once? If so, maybe the user that has permission to manage these system services changed the system services status.

    You can also try to export the gpresult file and check the system service status when the problem reoccurs again.

    For checking Computer Configuration within gpresult, we can follow steps below. Logon this machine using administrator account. Open CMD (run as Administrator). Type gpresult /h C:\gpo.html and click Enter. Open gpo.html and check gpo setting (service status) under "Computer Details".

    And you can also try to run gpupda /force to update GPO setting when the problem reoccurs again.
    It means if some one change the gpo setting on workstation manually, then it will refresh the GPO setting with domain GPO. https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/configure-group-policies-set-security

    Hope the information above is helpful. Should you have any question or concern, please feel free to let us know. Best Regards, Daisy Zhou

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    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.