How to determine the "Distinguished Name string" of a security group for New-ManagementScope command

Status
Not open for further replies.
G

gkriggs

Hello,

On Exchange 2010, I want to grant our service account permissions to be able to Exchange Impersonate only the users that belong to specific Active Directory Security Group. I found an article that gives an example of how to do this:

http://www.thesoftwaregorilla.com/2010/06/exchange-web-services-example-part-3-exchange-impersonation/

New-ManagementScope -Name:" TestImpersonation"
-RecipientRestrictionFilter {memberofgroup -eq
" cn=Test,cn=Users,DC=devtest,DC=internal,DC=com" }

However, unfortunetly the article does not explain how to determine the " Distinguished Name string" (e.g. " CN=Test,Cn=Users,DC=..." ) of the security group that you can use as an argument in the New-ManagmentScope command.

So, if I am in Active Directory Users and Computers, looking at the properties of the security group I want to use, is there any easy way I can determine the " Distinguished Name string" for that security group?

Thanks,
Greg
 
A

Alexei Segundo

Hi Greg

If you have Windows Server 2008 AD or later you can use the attribute editor in ADUC (dsa.msc) to find the distinguishedName. You need the Advanced view switched on to see the attribute editor. If you don't have 2008 AD or later possible other options are:

ADSIEdit.msc

ldp.exe

adfind.exe (from www.joeware.net), e.g.

adfind -default -f " (&(objectClass=group)(sAMAccountName=MyGroup))" 1.1

Alexei
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
oliv- determine to which address an email has been sent Outlook VBA and Custom Forms 3
M How can I determine which user read an email Exchange Server Administration 4
A Rules - how to determine if all conditions in rule are true or false Outlook VBA and Custom Forms 5
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
T How to determine when I switch from mail to calendar etc. Using Outlook 9
A account hacked, need software to determine what emails have been sent Using Outlook 1
J VBA code to determine 'show' state of SearchBar Using Outlook 7
L Outlook Meeting Response: determine when a meeting response has been edited Using Outlook 1
M Determine if a public Folder is used by an Application Using Outlook 2
S Determine Managed Folder Policy for Mailbox in Powershell Exchange 2010 SP1 Exchange Server Administration 4
M RDO: using TypeOf to determine [OOM] Class Outlook VBA and Custom Forms 1
S How to determine if message will be encrypted on Send Outlook VBA and Custom Forms 1
T Can I determine if an item is in a shared calendar? Outlook VBA and Custom Forms 5
T How to determine if email address resides in Exchange w/o OutlookSecurity prompts? Outlook VBA and Custom Forms 1
U Outlook 2016 Outlook 2016 sender name Using Outlook 1
C Macro to extract sender name & subject line of incoming emails to single txt file Outlook VBA and Custom Forms 3
D Outlook 2010 Outlook in Windows 10 keeps asking for user name and password repeatedly Using Outlook 14
glnz O365 - How to control whether my From name shows as "Dicky". Using Outlook 1
glnz O365 - How to send from acct 2 but showing email name from acct 1 as From - alias? Using Outlook 1
Terry Sullivan Sender's Name Doesn't Appear in the From Field on Outlook 365/IMAP Using Outlook 2
Terry Sullivan Sender Field Displays My E-Mail Address, Not My Name Using Outlook 1
L Email with correct To address but displaying name of a related person Using Outlook 0
M Automatically add senders first name to a greeting Outlook VBA and Custom Forms 1
D Is a sub folder under contacts necessary to be able to name an Address Book? Using Outlook 1
icacream Enter your user name and password for the following server. Using Outlook 5
B Extracting email addresses from a folder - how to also get the name of the person the address is for? Using Outlook 5
I Saving attachments from multiple emails and updating file name Outlook VBA and Custom Forms 0
D Add date next to day name in Outlook Today calendar view Using Outlook 1
J Is it no longer possible to suppress Outlook 2019 Invalid Certificate name mismatch security alert via Registry? Using Outlook 1
R Search/Jump to a folder by typing its name Outlook VBA and Custom Forms 1
C Outlook Autocomplete suggestions showing wrong person's name against an email address Using Outlook 0
Nadine Rule to move attachments with specific name Outlook VBA and Custom Forms 1
geofferyh How to change the Attachment File Name? Outlook VBA and Custom Forms 1
B Looking to get the Recipient email address (or even the "friendly name") from an email I am replying to using VBA Outlook VBA and Custom Forms 4
J VBA Outlook : Subject line : Cut and Paste name to heading , number to very end of the body of Email Outlook VBA and Custom Forms 1
CWM030 Name Server's Exchange Server Administration 15
CWM030 Name Change? Exchange Server Administration 9
W Save and rename outlook email attachments to include domain name & date received Outlook VBA and Custom Forms 4
V not able to change name in customize Ribbon Outlook VBA and Custom Forms 1
C Changed By field not displaying individual user's name in O365 Shared Mailbox Using Outlook 9
I How to display sender's name instead of email address in outlook 2013 message Using Outlook 5
L Automatically Insert Recipient Name from To Field Outlook VBA and Custom Forms 33
soadfan Outlook rules look up display name only Using Outlook 4
J reinstalling Outlook 2007 asking for user name & password Using Outlook 14
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
A saving attachement to folder named the same as rule name Outlook VBA and Custom Forms 0
D Inserting sender name and address with vba Outlook VBA and Custom Forms 1
A Error: The name cannot be matched to a name in the address list Using Outlook.com accounts in Outlook 0
tjd189 outlook 2016 name change Using Outlook 1
D Office365 Conference Room name change? Using Outlook 5

Similar threads

Top