I’m having a problem with two Active Directory Module cmdlets: Get-ADPrincipalGroupMembership and Get-ADGroup.
If I attempt to call a user who is a member of a group that contains a forward slash “/” in the group name, it results in an internal error. Example: Get-ADPrincipalGroupMembership -Identity ‘John Smith’. (John is a member of a group of name “Some/WeirdGroupName”). The error prevents me from reporting any of John Smith’s groups.
If I attempt to call a group and its Name property does not match the SamAccountName property, I receive a similar error. Example: Get-ADGroup -identity “SomeGroupName”. (The group’s Name is "SomeGroupName, but its SamAccountName is “SomeGroup”.)
I’ve found comments elsewhere indicating that these might be bugs. They occur in both Powershell 2.0 and 3.0. I have two questions for the forum:
(1) is there a way to obtain the necessary information/objects in spite of this error?
(2) In general, when Microsoft identifies Powershell bugs, how are the corrections published? (Why wasn’t it fixed in powershell 3.0?)
Thanks and keep up the Powershell-ing.