<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: List Exchange mailbox folder permissions &#8211; script</title>
	<atom:link href="http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/</link>
	<description>Blog technologii MS Exchange Server</description>
	<lastBuildDate>Thu, 20 Aug 2015 06:37:04 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: Pravin Jha</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-434832</link>
		<dc:creator><![CDATA[Pravin Jha]]></dc:creator>
		<pubDate>Mon, 09 Feb 2015 22:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-434832</guid>
		<description><![CDATA[I know its an old post. But i am taking my chance. If you are still listening to this post, can you please email the full script. If possible, I need to import mailbox names from a text file or CSV which ever works. I tried Get-Content but I am hitting an error somewhere. 

Also, I don&#039;t need archive mailbox to be included in the report. So, make all these modification is causing typo.]]></description>
		<content:encoded><![CDATA[<p>I know its an old post. But i am taking my chance. If you are still listening to this post, can you please email the full script. If possible, I need to import mailbox names from a text file or CSV which ever works. I tried Get-Content but I am hitting an error somewhere. </p>
<p>Also, I don&#8217;t need archive mailbox to be included in the report. So, make all these modification is causing typo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-140305</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Thu, 01 May 2014 19:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-140305</guid>
		<description><![CDATA[Hi 
yes you can loop this script for all users, use Matt Niswonger modificated script but at the top first use:
$mailboxes = get-mailbox -resultsize unlimited &#124; select alias
foreach ($mailbox in $mailboxes){
$MBXFolders = @()
$MBXFoldersCorr = New-Object System.Collections.ArrayList
$ArchiveFoldersCorr = New-Object System.Collections.ArrayList
$Permissions = @()

$MBX_tocheck = $mailbox.alias
now rest of the script 
but everywhere where is: 
$Permissions &#124; Sort-Object FolderName,User &#124; Format-Table
replace it by:
$Permissions &#124; Sort-Object FolderName,User &#124; out-file d:\scripts\$($mailbox.alias).txt

and at the end of script add
}

it should works if not let me know I didn&#039;t test it, but it should create .txt file with mailbox alias in d:\scripts\ for each mailbox]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
yes you can loop this script for all users, use Matt Niswonger modificated script but at the top first use:<br />
$mailboxes = get-mailbox -resultsize unlimited | select alias<br />
foreach ($mailbox in $mailboxes){<br />
$MBXFolders = @()<br />
$MBXFoldersCorr = New-Object System.Collections.ArrayList<br />
$ArchiveFoldersCorr = New-Object System.Collections.ArrayList<br />
$Permissions = @()</p>
<p>$MBX_tocheck = $mailbox.alias<br />
now rest of the script<br />
but everywhere where is:<br />
$Permissions | Sort-Object FolderName,User | Format-Table<br />
replace it by:<br />
$Permissions | Sort-Object FolderName,User | out-file d:\scripts\$($mailbox.alias).txt</p>
<p>and at the end of script add<br />
}</p>
<p>it should works if not let me know I didn&#8217;t test it, but it should create .txt file with mailbox alias in d:\scripts\ for each mailbox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-139659</link>
		<dc:creator><![CDATA[Rick]]></dc:creator>
		<pubDate>Tue, 29 Apr 2014 14:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-139659</guid>
		<description><![CDATA[Is there a way to run this script and loop it for every user in an organization?]]></description>
		<content:encoded><![CDATA[<p>Is there a way to run this script and loop it for every user in an organization?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Niswonger</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-99606</link>
		<dc:creator><![CDATA[Matt Niswonger]]></dc:creator>
		<pubDate>Thu, 10 Oct 2013 14:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-99606</guid>
		<description><![CDATA[Hey, thanks for the script.  I changed it up so it prompts for the username to check and also provides permissions for the user&#039;s personal archive, if they have one.  

$MBXFolders = @()
$MBXFoldersCorr = New-Object System.Collections.ArrayList
$ArchiveFoldersCorr = New-Object System.Collections.ArrayList
$Permissions = @()
#$MBX_tocheck = &quot;jastaj&quot;
$MBX_tocheck = read-host &#039;Please enter the mailbox alias you would like to check.&#039;
$MBXFolders = Get-MailboxFolderStatistics $MBX_tocheck &#124; select folderpath
$ArchiveFolders = Get-MailboxFolderStatistics $MBX_tocheck -archive &#124; select folderpath
$Archive = get-mailbox $MBX_tocheck

foreach ($item in $MBXFolders) {
 $temp = $item.FolderPath
 $temp = $Temp.Replace(&quot;/&quot;,&quot;\&quot;)
 $MBXFoldersCorr.Add($temp) &#124; out-null
}
foreach ($item in $MBXFoldersCorr) {
Try {
 $MailboxFolder = $MBX_tocheck + &quot;:&quot; + $item
 $FolderPermission = $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction Stop &#124; Select-Object FolderName,User,AccessRights)
 Foreach ($perm in $FolderPermission){
 $ReturnedObj1 = New-Object PSObject
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;FolderName&quot; -Value $($Perm.FolderName)
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;FolderPath&quot; -Value $MailboxFolder
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;User&quot; -Value $($Perm.User)
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;AccessRights&quot; -Value $($Perm.AccessRights)
 $Permissions += $ReturnedObj1
 }
 }
Catch {
 $ReturnedObj = New-Object PSObject
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;FolderName&quot; -Value $item
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;FolderPath&quot; -Value $MailboxFolder
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;User&quot; -Value &quot;*Not Applicable*&quot;
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;AccessRights&quot; -Value &quot;*Not Applicable*&quot;
 $Permissions += $ReturnedObj
 Continue
 }
}
write-host &quot;&quot;
write-host &quot;The following are the mailbox permissions for $MBX_tocheck&quot;
write-host &quot;&quot;
$Permissions &#124; Sort-Object FolderName,User &#124; Format-Table

if ($Archive.archivedatabase.name -ne $False) {foreach ($item in $ArchiveFolders) 
{
 $temp = $item.FolderPath
 $temp = $Temp.Replace(&quot;/&quot;,&quot;\&quot;)
 $ArchiveFoldersCorr.Add($temp) &#124; out-null
}
foreach ($item in $ArchiveFoldersCorr) {
Try {
 $MailboxFolder = $MBX_tocheck + &quot;:&quot; + $item
 $FolderPermission = $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction Stop &#124; Select-Object FolderName,User,AccessRights)
 Foreach ($perm in $FolderPermission){
 $ReturnedObj1 = New-Object PSObject
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;FolderName&quot; -Value $($Perm.FolderName)
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;FolderPath&quot; -Value $MailboxFolder
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;User&quot; -Value $($Perm.User)
 $ReturnedObj1 &#124; Add-Member NoteProperty -Name &quot;AccessRights&quot; -Value $($Perm.AccessRights)
 $Permissions += $ReturnedObj1
 }
 }
Catch {
 $ReturnedObj = New-Object PSObject
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;FolderName&quot; -Value $item
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;FolderPath&quot; -Value $MailboxFolder
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;User&quot; -Value &quot;*Not Applicable*&quot;
 $ReturnedObj &#124; Add-Member NoteProperty -Name &quot;AccessRights&quot; -Value &quot;*Not Applicable*&quot;
 $Permissions += $ReturnedObj
 Continue
 }
}
write-host &quot;&quot;
write-host &quot;The following are the archive permissions for $MBX_tocheck&quot;
write-host &quot;&quot;
$Permissions &#124; Sort-Object FolderName,User &#124; Format-Table
}]]></description>
		<content:encoded><![CDATA[<p>Hey, thanks for the script.  I changed it up so it prompts for the username to check and also provides permissions for the user&#8217;s personal archive, if they have one.  </p>
<p>$MBXFolders = @()<br />
$MBXFoldersCorr = New-Object System.Collections.ArrayList<br />
$ArchiveFoldersCorr = New-Object System.Collections.ArrayList<br />
$Permissions = @()<br />
#$MBX_tocheck = &#8220;jastaj&#8221;<br />
$MBX_tocheck = read-host &#8216;Please enter the mailbox alias you would like to check.&#8217;<br />
$MBXFolders = Get-MailboxFolderStatistics $MBX_tocheck | select folderpath<br />
$ArchiveFolders = Get-MailboxFolderStatistics $MBX_tocheck -archive | select folderpath<br />
$Archive = get-mailbox $MBX_tocheck</p>
<p>foreach ($item in $MBXFolders) {<br />
 $temp = $item.FolderPath<br />
 $temp = $Temp.Replace(&#8220;/&#8221;,&#8221;\&#8221;)<br />
 $MBXFoldersCorr.Add($temp) | out-null<br />
}<br />
foreach ($item in $MBXFoldersCorr) {<br />
Try {<br />
 $MailboxFolder = $MBX_tocheck + &#8220;:&#8221; + $item<br />
 $FolderPermission = $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction Stop | Select-Object FolderName,User,AccessRights)<br />
 Foreach ($perm in $FolderPermission){<br />
 $ReturnedObj1 = New-Object PSObject<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;FolderName&#8221; -Value $($Perm.FolderName)<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;FolderPath&#8221; -Value $MailboxFolder<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;User&#8221; -Value $($Perm.User)<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;AccessRights&#8221; -Value $($Perm.AccessRights)<br />
 $Permissions += $ReturnedObj1<br />
 }<br />
 }<br />
Catch {<br />
 $ReturnedObj = New-Object PSObject<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;FolderName&#8221; -Value $item<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;FolderPath&#8221; -Value $MailboxFolder<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;User&#8221; -Value &#8220;*Not Applicable*&#8221;<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;AccessRights&#8221; -Value &#8220;*Not Applicable*&#8221;<br />
 $Permissions += $ReturnedObj<br />
 Continue<br />
 }<br />
}<br />
write-host &#8220;&#8221;<br />
write-host &#8220;The following are the mailbox permissions for $MBX_tocheck&#8221;<br />
write-host &#8220;&#8221;<br />
$Permissions | Sort-Object FolderName,User | Format-Table</p>
<p>if ($Archive.archivedatabase.name -ne $False) {foreach ($item in $ArchiveFolders)<br />
{<br />
 $temp = $item.FolderPath<br />
 $temp = $Temp.Replace(&#8220;/&#8221;,&#8221;\&#8221;)<br />
 $ArchiveFoldersCorr.Add($temp) | out-null<br />
}<br />
foreach ($item in $ArchiveFoldersCorr) {<br />
Try {<br />
 $MailboxFolder = $MBX_tocheck + &#8220;:&#8221; + $item<br />
 $FolderPermission = $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction Stop | Select-Object FolderName,User,AccessRights)<br />
 Foreach ($perm in $FolderPermission){<br />
 $ReturnedObj1 = New-Object PSObject<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;FolderName&#8221; -Value $($Perm.FolderName)<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;FolderPath&#8221; -Value $MailboxFolder<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;User&#8221; -Value $($Perm.User)<br />
 $ReturnedObj1 | Add-Member NoteProperty -Name &#8220;AccessRights&#8221; -Value $($Perm.AccessRights)<br />
 $Permissions += $ReturnedObj1<br />
 }<br />
 }<br />
Catch {<br />
 $ReturnedObj = New-Object PSObject<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;FolderName&#8221; -Value $item<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;FolderPath&#8221; -Value $MailboxFolder<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;User&#8221; -Value &#8220;*Not Applicable*&#8221;<br />
 $ReturnedObj | Add-Member NoteProperty -Name &#8220;AccessRights&#8221; -Value &#8220;*Not Applicable*&#8221;<br />
 $Permissions += $ReturnedObj<br />
 Continue<br />
 }<br />
}<br />
write-host &#8220;&#8221;<br />
write-host &#8220;The following are the archive permissions for $MBX_tocheck&#8221;<br />
write-host &#8220;&#8221;<br />
$Permissions | Sort-Object FolderName,User | Format-Table<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias Basgier</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-99278</link>
		<dc:creator><![CDATA[Matias Basgier]]></dc:creator>
		<pubDate>Tue, 08 Oct 2013 13:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-99278</guid>
		<description><![CDATA[Yes, thank it works. Thank you.]]></description>
		<content:encoded><![CDATA[<p>Yes, thank it works. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-99275</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Tue, 08 Oct 2013 12:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-99275</guid>
		<description><![CDATA[I&#039;ve send you script by an email hope it works like you want.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve send you script by an email hope it works like you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias Basgier</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-99078</link>
		<dc:creator><![CDATA[Matias Basgier]]></dc:creator>
		<pubDate>Mon, 07 Oct 2013 06:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-99078</guid>
		<description><![CDATA[thanks for your posting. But when I try this, I get the same result as when I do not use the filter. I get always a list with all folders and all permissions. I want to have a list on which subfolders a specific user have permissons. Do you have another idea?]]></description>
		<content:encoded><![CDATA[<p>thanks for your posting. But when I try this, I get the same result as when I do not use the filter. I get always a list with all folders and all permissions. I want to have a list on which subfolders a specific user have permissons. Do you have another idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-98710</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Fri, 04 Oct 2013 21:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-98710</guid>
		<description><![CDATA[Hi Matias
You should use $_.user.ToString() -like &quot;John&quot;
or $_.user.ToString() -match &quot;John&quot;]]></description>
		<content:encoded><![CDATA[<p>Hi Matias<br />
You should use $_.user.ToString() -like &#8220;John&#8221;<br />
or $_.user.ToString() -match &#8220;John&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matias Basgier</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-98630</link>
		<dc:creator><![CDATA[Matias Basgier]]></dc:creator>
		<pubDate>Fri, 04 Oct 2013 10:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-98630</guid>
		<description><![CDATA[I would like to show only the permissions that a particular user has.
i tried to filter in this part by User A:
$FolderPermission = $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction&#124; where {$_.User -like &quot;User A&quot;} &#124;Select-Object FolderName,User,AccessRights) but it does not work.
Do you have any idea?]]></description>
		<content:encoded><![CDATA[<p>I would like to show only the permissions that a particular user has.<br />
i tried to filter in this part by User A:<br />
$FolderPermission = $(Get-MailboxFolderPermission $MailboxFolder -ErrorAction| where {$_.User -like &#8220;User A&#8221;} |Select-Object FolderName,User,AccessRights) but it does not work.<br />
Do you have any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigiusz Szatkowski</title>
		<link>http://exchangeblog.pl/en/2013/03/list-exchange-mailbox-folder-permissions-script/#comment-97662</link>
		<dc:creator><![CDATA[Remigiusz Szatkowski]]></dc:creator>
		<pubDate>Sat, 28 Sep 2013 18:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://exchangeblog.pl/?p=3346#comment-97662</guid>
		<description><![CDATA[check your email]]></description>
		<content:encoded><![CDATA[<p>check your email</p>
]]></content:encoded>
	</item>
</channel>
</rss>
