<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>PowerShell General</title><link>http://powershell.com/cs/forums/230.aspx</link><description>Moderated by PowerShell MVP &lt;a href="http://powershell.com/cs/content/experts.aspx#thomas-lee"&gt;Thomas Lee&lt;/a&gt; and PowerShell expert  &lt;a href="http://powershell.com/cs/content/experts.aspx#jakub-jares"&gt;Jakub Jareš&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Re: run external command from powershell</title><link>http://powershell.com/cs/forums/thread/15324.aspx</link><pubDate>Wed, 14 Mar 2012 13:16:24 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15324</guid><dc:creator>Don Jones</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/15324.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=15324</wfw:commentRss><description>&lt;p&gt;Sure. You don&amp;#39;t even have to use Start-Process - you can just run Telnet. It&amp;#39;ll launch in a Cmd.exe process and PowerShell will capture its output. Not sure about the credentials thing - as far as I know, Telnet has never been able to delegate credentials.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>run external command from powershell</title><link>http://powershell.com/cs/forums/thread/15321.aspx</link><pubDate>Wed, 14 Mar 2012 06:29:53 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15321</guid><dc:creator>Troy</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/15321.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=15321</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;is it possible to run an external command like telnet repeatedly from powershell?&lt;/p&gt;
&lt;p&gt;I need to telnet several servers and login automatically.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i need to run&amp;nbsp;something&amp;nbsp;like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;$list = get-content c:\serverlist.txt&lt;/p&gt;
&lt;p&gt;foreach ($_ in $list)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;start-process telnet -a $_ &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;i&gt;(this doesnt log me in with current credentials automatically for some&amp;nbsp;reason)&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;$a = (get-process telnet).id&lt;/p&gt;
&lt;p&gt;stop-process $a&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>