<?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>Distributed PowerShell Available Today Via Specops Command</title><link>http://blogs.msdn.com/powershell/archive/2007/11/28/distributed-powershell-available-today-via-specops-command.aspx</link><description>When I worked in the CTO office at Tivoli, I identified the fact that there were just a handful of design patterns for distributed applications and distributed management in particular.&amp;#160; We then started a management framework project to support those</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; Distributed PowerShell Available Today Via Specops Command</title><link>http://blogs.msdn.com/powershell/archive/2007/11/28/distributed-powershell-available-today-via-specops-command.aspx#6569918</link><pubDate>Wed, 28 Nov 2007 09:10:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6569918</guid><dc:creator>MSDN Blog Postings  » Distributed PowerShell Available Today Via Specops Command</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/11/28/distributed-powershell-available-today-via-specops-command/"&gt;http://msdnrss.thecoderblogs.com/2007/11/28/distributed-powershell-available-today-via-specops-command/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re:Execute Powershell file from vb.net</title><link>http://blogs.msdn.com/powershell/archive/2007/11/28/distributed-powershell-available-today-via-specops-command.aspx#6584419</link><pubDate>Wed, 28 Nov 2007 23:36:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6584419</guid><dc:creator>Neel</dc:creator><description>&lt;p&gt;Jeffrey,&lt;/p&gt;
&lt;p&gt;I am an avid reader of the powershell blog&lt;/p&gt;
&lt;p&gt;I would appreciate, if you can provide me suggestions or ideas on executing the ps1 file using .NET, below is the code i am using, i cannot find how to snap in pshost...&lt;/p&gt;
&lt;p&gt;Dim PSRunspace As Runspace = RunspaceFactory.CreateRunspace&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PSRunspace.Open()&lt;/p&gt;
&lt;p&gt; Dim PSpipe As Pipeline = PSRunspace.CreatePipeline()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim PSCmd As Command = New Command(PSFilePath, False)&lt;/p&gt;
&lt;p&gt; PSpipe.Commands.Add(&amp;quot;out-String&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PSpipe.Commands(0).MergeMyResults(PipelineResultTypes.Error, PipelineResultTypes.Output)&lt;/p&gt;
&lt;p&gt; 'execute the script&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim resultObject = PSpipe.Invoke()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'close the runspace&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PSRunspace.Close()&lt;/p&gt;
&lt;p&gt;powershell file just sends an email fron database. works fine, if i run through powershell gui, but not working when i try to use runspace &lt;/p&gt;
&lt;p&gt;help me out&lt;/p&gt;
&lt;p&gt;Neel&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;</description></item></channel></rss>