Hmmmm....

After a bunch of failures with dsget, I finally, I tried this:
     dsquery group -name re*
and got a list, including
"CN=ReSharperC#Users,OU=ExchangeDLs,OU=US,DC=example,DC=com"

So I then did:

     C:\Batchfiles> dsget group
"CN=ReSharperC#Users,OU=ExchangeDLs,OU=US,DC=example,DC=com"
       dn                                                                 desc
       CN=ReSharperC#Users,OU=ExchangeDLs,OU=US,DC=example,DC=com
     dsget succeeded

This looks like what I see in ADUC (and incidentally in ADSIEdit)

Does this make sense? Are there next steps for me in trying to recover
this in Exchange?

BTW, just for grins, I've used get-distributiongroup with -like
filters for name, displayname and alias, with negative results.

Kurt

On Fri, Jun 24, 2016 at 10:42 AM, Michael B. Smith
<[email protected]> wrote:
> The distinguishedName is probably the right answer. Easy to test on a DC:
>
>         dsget group 
> "CN=ReSharperC\#Users,OU=ExchangeDLs,OU=US,DC=example,DC=com"
>
> Should give you a couple of lines of data about the group.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> On Behalf Of Kurt Buff
> Sent: Thursday, June 23, 2016 9:03 PM
> To: [email protected]
> Subject: Re: [Exchange] A very strange problem with a DL - Exchange 2010
>
> Michael,
>
> Sorry again for the delayed response - this floated down on my list of
> priorities until a couple of other things got finished.
>
> I probably used ADUC to change the name.
>
> I'm having problems with renaming back to what it was though - either
> I've misremembered the old name, or the effort to rename it isn't
> restoring it back to the GAL, for whatever reason, so it's not showing
> in the EMC.
>
> I would guess that I have to restore the original name exactly - am I correct?
>
> Regardless, I just performed the following in Powershell:
>      get-adgroup -filter {name -like "*sharp*"} -properties *
>
> and I get back the following attributes that mention the name:
>
>      CanonicalName                   :
> example.com/US/ExchangeDLs/ReSharperC#Users
>      CN                              : ReSharperC#Users
>      DistinguishedName               :
> CN=ReSharperC\#Users,OU=ExchangeDLs,OU=US,DC=example,DC=com
>      Name                            : ReSharperC#Users
>      SamAccountName                  : ReSharperC#Users
>
> If this is too much of a bother to pursue, or too risky to fuss with,
> I'm OK with noting the members of the group, trashing it and
> recreating it - I don't think this list gets much traffic.
>
> Kurt
>
> On Sun, Jun 19, 2016 at 3:58 PM, Michael B. Smith <[email protected]> 
> wrote:
>> '#' is a special character in LDAP and in PowerShell. So it has be escaped. 
>> (And in C and C++ for that matter. I don't think it is in C#, somewhat 
>> ironically.)
>>
>> What tool did you use to change the name?
>>
>> Any object has a bunch of name-related attributes associated with it. 
>> 'name', 'displayName', 'simpleDisplayName', 'CN=another-name', etc. If it's 
>> an Exchange object and you changed it with ADUC I’m not surprised it 
>> 'disappeared'. Change it back with ADUC and then rename it with EMS or EMC.
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] 
>> On Behalf Of Kurt Buff
>> Sent: Saturday, June 18, 2016 5:17 PM
>> To: [email protected]
>> Subject: [Exchange] A very strange problem with a DL - Exchange 2010
>>
>> Someone recently created a DL with a '#' in the name and alias (it's for our 
>> C# programmers). It displayed fine, but when using PS to manipulate the 
>> group, it showed up with '\#' - which was interesting.
>>
>> I wasn't happy with the name used (it didn't match our naming
>> standard) so I changed the name to use 'CSharp' instead, as well as to match 
>> our naming standard.
>>
>> Now I can't find the group in Exchange - at all. Not in the GAL via Outlook, 
>> not in the EMC, and not with get-distributiongroup, even more than 24 hours 
>> later. I haven't rebooted the box yet - I'll probably do that tomorrow 
>> morning.
>>
>> I can see the group with get-adgroup, but that doesn't expose many of the 
>> properties, including 'Alias', which I believe still has '#' in the name, 
>> and which I suspect is causing the problem, though I don't know for sure.
>>
>> I could just delete the group through AD and recreate it, but that seems 
>> like a less than optimal approach.
>>
>> It's quite baffling, and I'd love a clue as to how I can proceed.
>>
>> Kurt
>>
>>
>
>


Reply via email to