Hello mahnaz_116,
Thank you for posting in Microsoft Community forum.
1.Is your forest single forest with only one domain? If so, how many Domain Controllers are there in the domain?
2.What are the operating system version of all the domain controllers in this domain?
3.Please check if the SYSVOL replication engine is DFSR.
4.Please check if AD replication works fine between all the DCs in the forest.
5.Now please check if SYSVOL and Netlogon folder are on all the Domain Controllers.
6.Please check if SYSVOL and Netlogon folder are shared on all the Domain Controllers.
Meanwhile, based on "but ocationally doesnt work and it's reply screenshot was attached.", please provide the screenshot you mentioned.
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou