<?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>RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx</link><description>Over on the Everyday Nerd blog, I found a great blog entry you should read:&amp;#160; Create multiple RDP files with PowerShell .&amp;#160; He describes his environment where he has to manage a large set of servers using Remote Desktop (RDP).&amp;#160; Having to</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951775</link><pubDate>Sun, 14 Sep 2008 19:31:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951775</guid><dc:creator>EverydayNerd</dc:creator><description>&lt;p&gt;Hey - Glad you liked the script! &amp;nbsp;I was like a giddy school girl when I did this! &amp;nbsp;Pretty cool stuff! :) &amp;nbsp;Cheers~&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951794</link><pubDate>Sun, 14 Sep 2008 20:31:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951794</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@Nerd&lt;/p&gt;
&lt;p&gt;Yeah - that was very cool. &amp;nbsp;Great thinking.&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item><item><title>Splitting HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951803</link><pubDate>Sun, 14 Sep 2008 20:59:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951803</guid><dc:creator>Paul Chavez</dc:creator><description>&lt;p&gt;Is it appropriate to use HERE strings to setup a list of computers internal to the script.&lt;/p&gt;
&lt;p&gt;The problem was when I split the string on newline into an array of strings there was an extra character at the end of each string in the array and I couldn't figure out why.&lt;/p&gt;
&lt;p&gt;I ended up moving the list into an external text file that I read in during processing, which may be better overall.&lt;/p&gt;
&lt;p&gt;My question now is why didn't the split work correctly, should I have split on a different character?&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951838</link><pubDate>Sun, 14 Sep 2008 22:06:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951838</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;&amp;gt; My question now is why didn't the split work correctly, should I have split on a different character?&lt;/p&gt;
&lt;p&gt;Post the code and I'll take a look.&lt;/p&gt;
&lt;p&gt;jps&lt;/p&gt;
</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951854</link><pubDate>Sun, 14 Sep 2008 22:38:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951854</guid><dc:creator>Paul Chavez</dc:creator><description>&lt;p&gt;It occurs in this snippet. The original case was taking a list of urls and building a query statement for logparser.&lt;/p&gt;
&lt;p&gt;It outputs to the console as expected. It's only when examining the variable in the PowershellPlus debugger that I &amp;quot;see&amp;quot; the extra character at the end of the $item variable.&lt;/p&gt;
&lt;p&gt;Even though it looks ok on the screen when passed into the logparser com object it failed. I think if I just used the resulting query string as a parameter to logparser.exe it worked.&lt;/p&gt;
&lt;p&gt;$list = @&amp;quot;&lt;/p&gt;
&lt;p&gt;First&lt;/p&gt;
&lt;p&gt;Second&lt;/p&gt;
&lt;p&gt;Third&lt;/p&gt;
&lt;p&gt;&amp;quot;@&lt;/p&gt;
&lt;p&gt;$items = $list.Split(&amp;quot;`n&amp;quot;)&lt;/p&gt;
&lt;p&gt;$newstring = &amp;quot;SELECT &amp;quot;&lt;/p&gt;
&lt;p&gt;foreach ($item in $items)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	$newstring += &amp;quot;$item, &amp;quot;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;$newstring&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951881</link><pubDate>Mon, 15 Sep 2008 00:01:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951881</guid><dc:creator>Joakim E</dc:creator><description>&lt;p&gt;This probably misses the point but he could possibly use the free and great Royal TS &lt;a rel="nofollow" target="_new" href="http://code4ward.net/CS2/Default.aspx"&gt;http://code4ward.net/CS2/Default.aspx&lt;/a&gt;. It's a lifesaver when it comes to managing large amount of servers over RDP. I for one can't live without it anymore.&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8951974</link><pubDate>Mon, 15 Sep 2008 03:09:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8951974</guid><dc:creator>Chris Federico</dc:creator><description>&lt;p&gt;The only time I seen someone use a here-string was in Ed Wilson's Microsoft Powershell book. He uses it a lot for Help functions that display syntax . &lt;/p&gt;
&lt;p&gt;P.S I'm not trying to see the book but it is very good !&lt;/p&gt;
&lt;p&gt;Good Blog!&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8953375</link><pubDate>Tue, 16 Sep 2008 05:34:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8953375</guid><dc:creator>bob developer</dc:creator><description>&lt;p&gt;Having been forced to do a decent amount of work in php I was familiar with the here-strings but not a fan. The additional power in posh sold me on the concept. I (now) love here-strings for generating things like email alerts; and shudder to think what life would be like without them. ;)&lt;/p&gt;
&lt;p&gt;on a completely unrelated note, stackoverflow (a joelonsoftware/codinghorror collaboration) is open to the public, already some decent (and some not so) powershell questions and answers&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/tagged/powershell"&gt;http://stackoverflow.com/questions/tagged/powershell&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8953833</link><pubDate>Tue, 16 Sep 2008 15:24:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8953833</guid><dc:creator>Trac3r726</dc:creator><description>&lt;p&gt;Great post i will tryout the here-string. I completely agree with your comments on the naming conventions. that will make life alot easier.&lt;/p&gt;</description></item><item><title>re: RDP File Generation/Use of HERE-Strings</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8954471</link><pubDate>Wed, 17 Sep 2008 01:26:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954471</guid><dc:creator>Paul Chavez</dc:creator><description>&lt;p&gt;Disregard my post about the &amp;quot;mystery&amp;quot; character. &lt;/p&gt;
&lt;p&gt;Further investigation shows it is a problem with the Powershell Plus editor.&lt;/p&gt;</description></item><item><title>Adam Weigert Puts NetApp On a String</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8960579</link><pubDate>Sun, 21 Sep 2008 19:23:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960579</guid><dc:creator>PowerShell Team Blog</dc:creator><description>&lt;p&gt;Adam Weigert has started a new Codeplex project PowerShell OnTap .&amp;amp;#160;&amp;amp;#160; (That brings the total&lt;/p&gt;
</description></item><item><title>Adam Weigert Puts NetApp On a String</title><link>http://blogs.msdn.com/powershell/archive/2008/09/14/rdp-file-generation-use-of-here-strings.aspx#8960580</link><pubDate>Sun, 21 Sep 2008 19:24:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960580</guid><dc:creator>PowerShell Team Blog</dc:creator><description>&lt;p&gt;Adam Weigert has started a new Codeplex project PowerShell OnTap . (That brings the total number of PowerShell-related&lt;/p&gt;
</description></item></channel></rss>