Comments on: Output a List of In-Policy Users for a Resource Mailbox Using PowerShell https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/ Practical Office 365 News, Tips, and Tutorials Thu, 12 Mar 2020 10:18:08 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Michel Van Delden https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-228994 Thu, 12 Mar 2020 10:18:08 +0000 https://www.practical365.com/?p=7335#comment-228994 In reply to dp.

Thanks for you comment that was exactly what I was looking for.
I personally was only curious about actual users so I expanded on your group output.

$resourceIdentity = Read-Host
try
{
(Get-CalendarProcessing -Identity $resourceIdentity).Bookinpolicy | Get-user -ErrorAction SilentlyContinue | ft name -AutoSize
}
finally
{
(Get-CalendarProcessing -Identity $resourceIdentity).Bookinpolicy | Get-Group -ErrorAction SilentlyContinue |% {Get-DistributionGroupMember $_.identity}| select name | ft
}

]]>
By: Margaret Auld-Louie https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-228645 Wed, 08 Jan 2020 02:28:04 +0000 https://www.practical365.com/?p=7335#comment-228645 In reply to Brijesh Choudhary.

I love that. It gives me just what I need, without chopping it off.

]]>
By: Brijesh Choudhary https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-228513 Fri, 06 Dec 2019 10:52:13 +0000 https://www.practical365.com/?p=7335#comment-228513 In reply to Ashish Bhat.

Use this.

((Get-calendarprocessing <>).bookinpolicy | Get-recipient ).PrimarySMTPAddress

Example:

((Get-calendarprocessing H3060@mydomain.com).bookinpolicy | Get-recipient ).PrimarySMTPAddress

]]>
By: dp https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-228335 Tue, 05 Nov 2019 13:37:34 +0000 https://www.practical365.com/?p=7335#comment-228335 $resourceIdentity = “YourResuorceMailboxEmailAddress”
try
{
(Get-CalendarProcessing -Identity $resourceIdentity).Bookinpolicy | Get-user -ErrorAction SilentlyContinue | ft -AutoSize
}
finally
{
(Get-CalendarProcessing -Identity $resourceIdentity).Bookinpolicy | Get-Group -ErrorAction SilentlyContinue | select name,recipienttype | ft
}

]]>
By: Ashish Bhat https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-220179 Tue, 23 Jul 2019 01:06:50 +0000 https://www.practical365.com/?p=7335#comment-220179 In reply to Greg.

Would you like to share the post

]]>
By: Ashish Bhat https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-220176 Tue, 23 Jul 2019 00:15:19 +0000 https://www.practical365.com/?p=7335#comment-220176 In reply to Paul Cunningham.

Still Not Working

]]>
By: Guillaume https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-194732 Fri, 15 Mar 2019 15:36:51 +0000 https://www.practical365.com/?p=7335#comment-194732 In reply to Chris P.

Great you saved my day !
instead of alias I use DisplayName

]]>
By: Chris P https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-183990 Wed, 09 Jan 2019 15:35:37 +0000 https://www.practical365.com/?p=7335#comment-183990 In reply to Rikard Strand.

if you do get-recipient instead of get-mailbox, you can also extract the alias if a group is assigned:

foreach ( $x in (Get-CalendarProcessing “podcast_room_2gp-4” | Select-Object -ExpandProperty:bookinpolicy) ) { get-recipient $x | select -ExpandProperty:alias }

]]>
By: Rhys https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-165143 Wed, 10 Oct 2018 02:08:33 +0000 https://www.practical365.com/?p=7335#comment-165143 In reply to Greg.

What was the post or command used to get this info?

I am having the same issue with bookinpolicy returning truncated values. When I pipe this to “| Select Name” it returns blank lines.
I checked one of the mailboxes and legacydn property has the same truncated value

]]>
By: Emily https://practical365.com/output-list-policy-users-resource-mailbox-using-powershell/#comment-154932 Fri, 13 Oct 2017 14:24:50 +0000 https://www.practical365.com/?p=7335#comment-154932 In reply to Paul Cunningham.

I apologize that I wasn’t clear. I’m using Powershell w the Azure AD module loaded (often required for O365) to connect to Exchange Online.

]]>