Hi Handian,
This timeout is not a PowerShell client issue; it is an LDAP server-side query timeout enforced by Active Directory while enumerating fine‑grained password policies, which typically occurs in large or slow domains when Get-ADFineGrainedPasswordPolicy is executed without a restrictive filter. The supported fix is to increase the LDAP query timeout by creating an extended LDAP query policy with a higher MaxQueryDuration value and linking it to the affected domain controller or site, using ldifde against the Configuration partition as documented by Microsoft. Running the cmdlet with a specific -Identity or a narrow -Filter can mitigate the symptom but does not resolve the underlying server timeout condition. This behavior is expected and will continue until the directory service is allowed more time to process the request. If timeouts persist after applying an extended query policy, you should validate DC performance, replication health, and network latency, as the cmdlet is often the first indicator of deeper directory service degradation. No client-side PowerShell timeout parameter exists for AD cmdlets, so increasing the LDAP query policy is the only supported and reliable resolution.
If you find this post helpful, please accept the answer or give it a thump up, it would lighten my day!!!
Harry.