Archive for July 12th, 2007

AD PowerShell Webcast in 3 hours

Just a reminder that Quest is giving Webcast: Active Directory Management Made Easy with PowerShell in about 3 hours from now.

Tags: , , , , , , , , , ,

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: , , , , , , , ,


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: