Computer GPO blocking Yubico PIV management in offline AD domain

Federico Gentile 0 Reputation points
2024-07-22T20:57:00.5266667+00:00

Hello!
I manage a small Windows Server 2022 AD on premise domain, which is completely detached from the outside network since March.

I set up PIV logon to be required by all users in the domain, using user personal and root certificates residing in a personal assigned Yubikey 5. Everything was working well aside from the auto-enrollment policy to allow users to obtain certificate via domain policies.

Some days ago nobody was able to login to the domain anymore. And despite confusing logs I thought my password policy configuration triggered password renewals for all users. Most of the users, never had to use their password to login into Windows clients, so most of them forgot and/or confused the domain account password with the smart card PIN. Now some of the SC are blocked, accounts as well but since certificates are not expired one administrator account that had no expiring password policy is still able to login to the PDC.I have no problem resetting users, psw and SC, but currently I am unable to run any certutil -sc commands. Whenever it requires a pin to be entered outside the windows logon scenario, the prompt for PIN fails saying "The operation is not permitted due to Computer Policy configuration".

I am trying to troubleshoot this, but having difficulties since the amount of different policies configured and lack of experienced seniors. Could help me pointing out policy settings that can be responsible for this behavior? General tips and/or guides on how to correctly configure this SC logon are very welcomed. My configuration is based on Yubico and Microsoft Learn documentation.

I will provide more details if needed but since it's completely offline it could be difficult to exfiltrate logs.

Thank you very much in advance.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,055 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,259 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 23,426 Reputation points Microsoft Vendor
    2024-07-23T08:45:41.96+00:00

    Hello Federico Gentile,

    Thank you for posting in Q&A forum.

    Based on the description, I understand you set up PIV logon to be required by all users in the domain, but now nobody was able to login to the domain anymore. Now one administrator account that had no expiring password policy is still able to login to the PDC. Now you are unable to run any certutil -sc commands.

    Based on the description "Whenever it requires a pin to be entered outside the windows logon scenario, the prompt for PIN fails saying "The operation is not permitted due to Computer Policy configuration".", you can try to export computer configurations on problematic machine (see steps below) and try to check the related /corresponding GPO settings (I'm sorry, I can't know the specific policy settings directly, but you can try to find the relevant policy on the machine in question).

    Meanwhile, what do you mean "outside the windows logon scenario"? Maybe there are Computer Policy settings to block to use PIN when it is not Windows logon scenario.

    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 under "Computer Details".

    I hope the information above is helpful.

    If you have any questions or concerns, 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.