{"id":2347,"date":"2013-04-19T15:11:19","date_gmt":"2013-04-19T12:11:19","guid":{"rendered":"http:\/\/www.buldakov.ru\/?p=2347"},"modified":"2015-12-09T17:17:50","modified_gmt":"2015-12-09T14:17:50","slug":"exchange-2010-%d0%be%d0%b1%d1%89%d0%b8%d0%b5-%d0%bf%d0%b0%d0%bf%d0%ba%d0%b8-%d0%b8-send-as-%d0%bf%d1%80%d0%be%d0%b4%d0%be%d0%bb%d0%b6%d0%b5%d0%bd%d0%b8%d0%b5","status":"publish","type":"post","link":"https:\/\/www.buldakov.ru\/?p=2347","title":{"rendered":"Exchange 2010: \u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u043f\u043a\u0438 \u0438 Send-As \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.buldakov.ru\/wp-content\/uploads\/2009\/11\/e2010.jpg\" alt=\"e2010\" width=\"57\" height=\"73\" align=\"left\" \/>\u041a\u0430\u043a \u044f <a title=\"Exchange 2010: \u043e\u0431\u0449\u0438\u0435 \u043f\u0430\u043f\u043a\u0438 \u0438 Send-As\" href=\"http:\/\/www.buldakov.ru\/?p=2337\" target=\"_blank\">\u043d\u0430\u043f\u0438\u0441\u0430\u043b<\/a> \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0434\u0430\u0447\u0438 \u043f\u0440\u0430\u0432\u0430 Send-As \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u0431\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0438 \u0432 Active Directory. \u042d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043a\u0443\u0447\u043d\u0430\u044f \u0438 \u043d\u0443\u0434\u043d\u0430\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0442\u0435\u043d\/\u0442\u044b\u0441\u044f\u0447 \u0442\u0430\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u041d\u0430\u043c \u0432 \u0435\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 PowerShell. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u0432:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Set-Location ad:\r\nGet-ADObject -LDAPFilter &quot;(ObjectClass=publicFolder)&quot; -SearchBase 'CN=Microsoft Exchange System Objects,DC=o365lab,DC=pro' |\r\nselect Name, DistinguishedName, @{Name=&quot;Owner&quot;;expression={(Get-Acl &quot;$_&quot;).Owner}} |\r\nExport-Csv -Delimiter &quot;;&quot; -Path c:tmppfOwners.txt -Encoding UTF8<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u0432 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c. \u041a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442 Get-Acl \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 SetOwner(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c\u00a0\u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u041f\u0440\u0430\u0432\u0434\u0430, \u0434\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442 Set-Acl, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0443. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0430 <a title=\"How Can I Use Windows PowerShell to Determine the Owner of a File\" href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2008\/04\/15\/how-can-i-use-windows-powershell-to-determine-the-owner-of-a-file.aspx\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u043c\u0435\u043d\u044b \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">$NewOwner = New-Object System.Security.Principal.NTAccount(&quot;O365LABNEWMAILSERVER$&quot;)\r\n$PF = Get-ADObject -LDAPFilter &quot;(ObjectClass=publicFolder)&quot; -SearchBase 'CN=test6,CN=Microsoft Exchange System Objects,DC=o365lab,DC=pro'\r\n$Acl = Get-Acl $PF\r\n$Acl.SetOwner($NewOwner)\r\nSet-Acl -AclObject $Acl -Path $PF.DistinguishedName<\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432 \u0446\u0438\u043a\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0430 \u043a\u043e \u0432\u0441\u0435\u043c \u043e\u0431\u0449\u0438\u043c \u043f\u0430\u043f\u043a\u0430\u043c \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 Microsoft Exchange System Objects:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Import-Module ActiveDirectory\r\nSet-Location ad:\r\n\r\n$PFs = Get-ADObject -LDAPFilter &quot;(ObjectClass=publicFolder)&quot; -SearchBase 'CN=Microsoft Exchange System Objects,DC=o365lab,DC=pro'\r\n$NewOwner = New-Object System.Security.Principal.NTAccount(&quot;O365LABNEWMAILSERVER$&quot;)\r\n\r\nForEach ($PF in $PFs) {\r\n$Acl = Get-Acl $PF\r\n$Acl.SetOwner($NewOwner)\r\nSet-Acl -AclObject $Acl -Path $PF.DistinguishedName\u00a0\u00a0\u00a0}<\/pre>\n<p><span style=\"text-decoration: underline;\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/span>:<br \/>\n<a title=\"How Can I Use Windows PowerShell to Determine the Owner of a File?\" href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2008\/04\/15\/how-can-i-use-windows-powershell-to-determine-the-owner-of-a-file.aspx\">How Can I Use Windows PowerShell to Determine the Owner of a File?<\/a><br \/>\n<a title=\"Can I Determine a Folder's Access Rights and Who Has Them?\" href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2009\/09\/14\/hey-scripting-guy-september-14-2009.aspx\" target=\"_blank\">Can I Determine a Folder&#8217;s Access Rights and Who Has Them?<\/a><br \/>\n<a title=\"Cannot add send as permission for public folder on Exchange 2010 \" href=\"http:\/\/vstepic.blogspot.ru\/2013\/03\/cannot-add-send-as-permission-for.html\" target=\"_blank\">Cannot add send as permission for public folder on Exchange 2010<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0434\u0430\u0447\u0438 \u043f\u0440\u0430\u0432\u0430 Send-As \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u0431\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0438 \u0432 Active Directory. \u042d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043a\u0443\u0447\u043d\u0430\u044f \u0438 \u043d\u0443\u0434\u043d\u0430\u044f, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0442\u0435\u043d\/\u0442\u044b\u0441\u044f\u0447 \u0442\u0430\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u041d\u0430\u043c \u0432 \u0435\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 PowerShell. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u0432: Set-Location ad: Get-ADObject -LDAPFilter &quot;(ObjectClass=publicFolder)&quot; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-2347","post","type-post","status-publish","format-standard","hentry","category-exchange","category-powershell"],"_links":{"self":[{"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/posts\/2347","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=2347"}],"version-history":[{"count":2,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/posts\/2347\/revisions"}],"predecessor-version":[{"id":2803,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=\/wp\/v2\/posts\/2347\/revisions\/2803"}],"wp:attachment":[{"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buldakov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}