The server has returned the following error: invalid enumeration context during Get-ADObject

Copper Contributor

After executing folllowing powershell  - 

Get-ADObject -Server "WPA-QA01-AD_01.QA.WPA.LOCAL" -Filter { DistinguishedName -eq "CN=pg_local_u9@pintu.exchange421.org1.upn,OU=pintu.exchange421.org1.upn,OU=OCS Tenants,DC=QA,DC=WPA,DC=LOCAL" } -SearchBase "OU=pintu.exchange421.org1.upn,OU=OCS Tenants,DC=QA,DC=WPA,DC=LOCAL" -ErrorAction Stop | select ObjectClass

 

Getting the below error - 

"The server has returned the following error: invalid enumeration context."

Could someone help us to find out the solution.

 

Thanks

Pintu

0 Replies