'#' 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