Hello,
Thank you for posting in Q&A forum.
Based on your description, this issue you are experiencing may be due to the following reasons.
Group Policy is applied when a user logs on or off and when the computer starts up or shuts down. Therefore, if you lock the computer and then log back on, Group Policy might not be applied because it's not a full logoff and logon cycle.
If you want Group Policy to update immediately, you can try using the "gpupdate /force" command in the command prompt to force the Group Policy update.This may help you.
Refresh Group Policy | Microsoft Learn
If your Group Policy application fails, this document may be helpful to you.
Applying Group Policy troubleshooting guidance - Windows Server | Microsoft Learn
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.