Exception retrieving member: “An invalid dn syntax has been specified.”

Something which popped up in discussion forums so I thought I would mention the issue and workaround here. Consider this a KB article for Microsoft PowerShell:

SYMPTOMS

Getting the following error when trying to bind to an Active Directory (AD) object with Windows PowerShell 1.0.

out-lineoutput : Exception retrieving member “ClassId2e4f51ef21dd47e99d3c952918aff9cd”: “An invalid dn syntax has been specified.”

CAUSE

Bind with the current credentials and default domain controller (DC) fails.

RESOLUTION

Use explicit bind to a domain controller. If that does not help try explicitly specifying administrative credentials.

In case you are using AD cmdlets this can for example be done by running the following before other cmdlets:

Connect-QADService -Service 'dc1.company.com'

or

Connect-QADService -Service 'dc1.company.com' -Credential ( Get-Credential )

Then proceed with other commands such as Get-QADUser, etc.

APPLIES TO

  • Windows 2003 Active Directory
  • Windows PowerShell 1.0
  • Both AD cmdlets and native PowerShell [ADSI] support

SEE ALSO

Tags: , , , , , , , ,

0 Responses to “Exception retrieving member: “An invalid dn syntax has been specified.””



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




My Recent Tweets

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

July 2007
M T W T F S S
« Jun   Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

%d bloggers like this: