{"id":2186,"date":"2012-10-25T18:17:24","date_gmt":"2012-10-25T15:17:24","guid":{"rendered":"http:\/\/www.buldakov.ru\/?p=2186"},"modified":"2012-10-25T18:17:24","modified_gmt":"2012-10-25T15:17:24","slug":"exchange-2010-%d0%b5%d1%89%d1%91-%d0%be%d0%b4%d0%bd%d0%b0-%d0%b2%d1%8b%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b0","status":"publish","type":"post","link":"https:\/\/www.buldakov.ru\/?p=2186","title":{"rendered":"Exchange 2010: \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432"},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 &#8211; \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a\u00a0\u043e\u0431\u0449\u0438\u0445 (\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439)\u00a0\u044f\u0449\u0438\u043a\u043e\u0432 Exchange 2010 \u0441:<\/p>\n<ul>\n<li>\u043f\u043e\u0447\u0442\u043e\u0432\u044b\u043c\u0438 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438,<\/li>\n<li>\u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u0435\u0445, \u0443 \u043a\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u00a0\u043d\u0430 \u044f\u0449\u0438\u043a,<\/li>\n<li>\u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c,<\/li>\n<li>\u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u044f\u0449\u0438\u043a\u0430<\/li>\n<\/ul>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439\u00a0\u0432\u044b\u0432\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u0443\u0434\u0435\u0442:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">&quot;MailboxName1&quot;:&quot;Email1&quot;:&quot;FAUser1;FAUser2;&quot;:&quot;Manager1&quot;:&quot;MBSize1&quot;\n&quot;MailboxName2&quot;:&quot;Email2&quot;:&quot;FAUser3;FAUser4;&quot;:&quot;Manager2&quot;:&quot;MBSize2&quot;\n....<\/pre>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Get-Mailbox -Database &quot;Database&quot; -ResultSize unlimited | Select DisplayName,\nPrimarySmtpAddress<\/pre>\n<p>\u041c\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u0431\u0449\u0438\u0435 \u044f\u0449\u0438\u043a\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0431\u0430\u0437\u0435, \u0438 \u043a\u0440\u043e\u043c\u0435 \u043d\u0438\u0445 \u0432 \u044d\u0442\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0449\u0438\u043a\u043e\u0432 (\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445) \u043d\u0435\u0442. \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442 Get-MailboxPermission. \u041f\u0440\u0438\u0447\u0451\u043c, \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u043c Full Access \u0434\u0430\u043d \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u0441\u0430\u043c \u043e\u0431\u0449\u0438\u0439 \u044f\u0449\u0438\u043a, \u0430 \u043d\u0435 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0439\u0441\u044f \u0432\u044b\u0448\u0435 \u043f\u043e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 (\u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 IsInherited \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 $true). \u0417\u0430\u043e\u0434\u043d\u0438\u043c \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 NT AUTHORITYSELF.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">$tmpUsersPermissions = Get-Mailbox $_ | Get-MailboxPermission |\n?{($_.IsInherited -eq $false) -and ($_.user -notlike &quot;NT AUTHORITYSELF&quot;)} |\nSelect User<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u043b\u0443\u0447\u0451\u043d\u043d\u044b\u0445 \u0443\u0447\u0451\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430\u0434\u043e &#8220;\u0441\u043a\u043b\u0435\u0438\u0442\u044c&#8221;:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">$UserPermissionString = &quot;&quot;;\nforeach ($UserPermission in $tmpUsersPermissions) {\n     $UserPermissionString = $UserPermissionString + $UserPermission.User + &quot;; &quot;}<\/pre>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435, \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 $UserPermissionString \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 Full Access \u043d\u0430 \u044f\u0449\u0438\u043a.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0441 \u043e\u0431\u044a\u0435\u043a\u0442 &#8211; \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u044f\u0449\u0438\u043a\u0430 (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0451\u043d \u044f\u0449\u0438\u043a). \u0422\u0430\u043a \u043a\u0430\u043a \u0441\u0430\u043c \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u044f\u0449\u0438\u043a \u0443\u0436\u0435 \u043f\u043e\u043c\u0435\u0449\u0451\u043d \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e $_, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Get-User \u0438\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 Manager \u0443\u0447\u0451\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">(Get-User $_).Manager.Name<\/pre>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u0447\u0435\u0440\u0435\u0437 Get-MailboxStatistics \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e $_\u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u044f\u0449\u0438\u043a\u0430. \u0414\u043b\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0438\u0444\u0440 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e \u0432 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u044b<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">($_ | Get-MailboxStatistics).TotalItemSize.Value.ToMB()<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432 csv-\u0444\u0430\u0439\u043b. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Get-Mailbox -Database &quot;Database&quot; -ResultSize unlimited | Select DisplayName,\nPrimarySmtpAddress,\n@{Name=&quot;FullAccess&quot;;expression={\n$tmpUsersPermissions = Get-Mailbox $_ | Get-MailboxPermission |\n?{($_.IsInherited -eq $false) -and ($_.user -notlike &quot;NT AUTHORITYSELF&quot;)} |\nSelect User;\n$UserPermissionString = &quot;&quot;;\nforeach ($UserPermission in $tmpUsersPermissions) {\n     $UserPermissionString = $UserPermissionString + $UserPermission.User + &quot;; &quot;};\n$UserPermissionString;}},\n@{Name=&quot;Manager&quot;;expression={(Get-User $_).Manager.Name}},\n@{Name=&quot;MailboxSize&quot;;expression={\n($_ | Get-MailboxStatistics).TotalItemSize.Value.ToMB()}} |\nExport-Csv c:Tempmailboxes.txt -Delimiter :<\/pre>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e &#8220;:&#8221;, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c &#8220;,&#8221; \u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u00a0\u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u0442\u0430, \u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043b\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u0435\u0445 \u0443 \u043a\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043e\u0442\u0441\u044b\u043b\u043a\u0443, \u0438\u043b\u0438 \u0434\u0430\u0442\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 &#8211; \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a\u00a0\u043e\u0431\u0449\u0438\u0445 (\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439)\u00a0\u044f\u0449\u0438\u043a\u043e\u0432 Exchange 2010 \u0441: \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u043c\u0438 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438, \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u0435\u0445, \u0443 \u043a\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u00a0\u043d\u0430 \u044f\u0449\u0438\u043a, \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u043c, \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u044f\u0449\u0438\u043a\u0430 \u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439\u00a0\u0432\u044b\u0432\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u0443\u0434\u0435\u0442: &quot;MailboxName1&quot;:&quot;Email1&quot;:&quot;FAUser1;FAUser2;&quot;:&quot;Manager1&quot;:&quot;MBSize1&quot; &quot;MailboxName2&quot;:&quot;Email2&quot;:&quot;FAUser3;FAUser4;&quot;:&quot;Manager2&quot;:&quot;MBSize2&quot; &#8230;. \u041f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Get-Mailbox -Database &quot;Database&quot; -ResultSize unlimited | Select DisplayName, PrimarySmtpAddress \u041c\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u0431\u0449\u0438\u0435 \u044f\u0449\u0438\u043a\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0431\u0430\u0437\u0435, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[5,7,11],"tags":[],"class_list":["post-2186","post","type-post","status-publish","format-standard","hentry","category-exchange","category-powershell","category-life"],"_links":{"self":[{"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/posts\/2186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2186"}],"version-history":[{"count":0,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/posts\/2186\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}