<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Управление получателями в многодоменной среде (часть 2)</title><link>http://blogs.technet.com/vladg/archive/2007/02/27/665123.aspx</link><description>Сегодня мы рассмотрим на примерах все параметрых встроенной переменной $AdminSessionADSettings. По умолчанию "видение всего леса" отключено, и область видимости всех командлетов в данном процессе ограничена локальным доменом компьютера. Конфигурационный</description><dc:language>ru-RU</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Управление получателями в многодоменной среде (часть 2)</title><link>http://blogs.technet.com/vladg/archive/2007/02/27/665123.aspx#1216765</link><pubDate>Mon, 11 Jun 2007 16:00:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1216765</guid><dc:creator>Tantra</dc:creator><description>&lt;p&gt;Владимир, а как управлять переменной $AdminSessionADSettings из managed кода? Например, для нахождения всех получателей: &lt;/p&gt;
&lt;p&gt;RunspaceConfiguration rsConfig = RunspaceConfiguration.Create();&lt;/p&gt;
&lt;p&gt;PSSnapInException snapInException = null;&lt;/p&gt;
&lt;p&gt;PSSnapInInfo info = rsConfig.AddPSSnapIn(&amp;quot;Microsoft.Exchange.Management.PowerShell.Admin&amp;quot;, out snapInException);&lt;/p&gt;
&lt;p&gt;Runspace myRunSpace = RunspaceFactory.CreateRunspace(rsConfig);&lt;/p&gt;
&lt;p&gt;myRunSpace.Open();&lt;/p&gt;
&lt;p&gt;Pipeline pipeLine = myRunSpace.CreatePipeline();&lt;/p&gt;
&lt;p&gt;Command myCommand = new Command(&amp;quot;Get-Mailbox&amp;quot;);&lt;/p&gt;
&lt;p&gt;pipeLine.Commands.Add(myCommand);&lt;/p&gt;
&lt;p&gt;Collection&amp;lt;PSObject&amp;gt; commandResults = pipeLine.Invoke();&lt;/p&gt;
</description></item></channel></rss>