<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>How objects are sent to and from remote sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx</link><description>Instead of piping unstructured text, Windows PowerShell pipes objects between commands in a pipeline.&amp;#160; As a consequence PowerShell remoting also deals with objects when passing data to and from remote sessions.&amp;#160; This post explains how remote</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How objects are sent to and from remote sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx#10374253</link><pubDate>Mon, 03 Dec 2012 23:36:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10374253</guid><dc:creator>Pat</dc:creator><description>&lt;p&gt;Like the person above I can&amp;#39;t get the Mounted property returned when I invoke the Get-MailboxDatabase command from C#. &amp;nbsp;I can see all sorts of other properties, but not Mounted. &amp;nbsp;What&amp;#39;s going on?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10374253" width="1" height="1"&gt;</description></item><item><title>re: How objects are sent to and from remote sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx#10362658</link><pubDate>Thu, 25 Oct 2012 09:19:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10362658</guid><dc:creator>Help!</dc:creator><description>&lt;p&gt;I can not get the value of &amp;#39;Mounted&amp;#39; property when i using PSSession via C#/.net.&lt;/p&gt;
&lt;p&gt;command.AddScript(&amp;quot;Invoke-Command -ScriptBlock { Get-MailboxDatabase -Status }&amp;quot; + &amp;quot; -Session $myVar&amp;quot;);&lt;/p&gt;
&lt;p&gt;I can get the result after invoking the command,but the value of the &amp;#39;Mounted&amp;#39; property is null!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10362658" width="1" height="1"&gt;</description></item><item><title>re: How objects are sent to and from remote sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx#9947957</link><pubDate>Wed, 13 Jan 2010 19:27:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9947957</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;This is all well and nice, but how am I supposed to use PowerShell within C# to gain access to properties that aren't primitives?&lt;/p&gt;
&lt;p&gt;I'm working with Exchange 2010 and I need to use Get-MailboxStatistics for the TotalItemSize, which is an Unlimited&amp;lt;long&amp;gt; (a type in Microsoft.Exchange.Data).&lt;/p&gt;
&lt;p&gt;I can use .Properties[&amp;quot;TotalItemSize&amp;quot;], but that gives me a string that is less than practical to parse. (e.g. &amp;quot;22.01K (22,704 bytes)&amp;quot;)&lt;/p&gt;
&lt;p&gt;Are there other ways to call PowerShell from C# that will let me access the types properly? I have access to the Microsoft.Exchange.Data.* DLLs files with all the types in there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9947957" width="1" height="1"&gt;</description></item><item><title>re: How objects are sent to and from remote sessions</title><link>http://blogs.msdn.com/b/powershell/archive/2010/01/07/how-objects-are-sent-to-and-from-remote-sessions.aspx#9945434</link><pubDate>Thu, 07 Jan 2010 22:23:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9945434</guid><dc:creator>L.</dc:creator><description>&lt;p&gt;I can see why it works that way, and it's good enough to be very useful, but wouldn't it be nice if the remote object could somehow (e.g. using some kind of proxy object) be sent live to the local session? &amp;nbsp;We would be able to call methods and have them execute on the remote computer, or receive events from the remote computer, all transparently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9945434" width="1" height="1"&gt;</description></item></channel></rss>