I want to access an account which is disabled in Active Directory using people picker.I have set the stsadm property peoplepicker-searchadcustomfilter and peoplepicker-searchadcustomquery using below script to set people picker to show only user which are disabled in AD but not working.
stsadm -o setproperty -pn peoplepicker-searchadcustomquery -pv "(&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=2))" -url
stsadm -o setproperty -pn peoplepicker-searchadcustomfilter -pv "(&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=2))" -url
See below link for your reference
Any help will be appreciated.