<?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>Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx</link><description>Windows PowerShell comes with a lot of help files and documents, but, somehow, my favorite and most-frequently-used help is the help that I get by typing "Get-Help" in the console. And I have always wondered why this help is not readily available as a</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>a-foton &amp;raquo; Dude, Where&amp;#8217;s My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8745138</link><pubDate>Fri, 18 Jul 2008 02:25:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8745138</guid><dc:creator>a-foton &amp;raquo; Dude, Where&amp;#8217;s My Manual?</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.a-foton.ru/2008/07/dude-wheres-my-manual/"&gt;http://blog.a-foton.ru/2008/07/dude-wheres-my-manual/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8745289</link><pubDate>Fri, 18 Jul 2008 03:04:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8745289</guid><dc:creator>JeremyG</dc:creator><description>&lt;p&gt;Ok, we need someone who's a wizard with PowerShell and Word to tweak this script to apply additional Styles to the sub-sections of the the about files.&lt;/p&gt;
&lt;p&gt;For example, this script already applies &amp;quot;heading 1&amp;quot; to the title of each document.&lt;/p&gt;
&lt;p&gt;You should be able to apply the same type of styles to other sections. &amp;nbsp;Such as:&lt;/p&gt;
&lt;p&gt;&amp;quot;sub-headings&amp;quot; = word: heading 2&lt;/p&gt;
&lt;p&gt;&amp;quot;paragraph text&amp;quot; = word: normal&lt;/p&gt;
&lt;p&gt;&amp;quot;code samples&amp;quot; = word: emphasis&lt;/p&gt;
&lt;p&gt;Should be pretty easy to do, since all the sections seem to be uniformly indented. &amp;nbsp; However, my wife will kill me if I spend the next several hours figuring out the in's-and-out's of Word formatting code.&lt;/p&gt;
&lt;p&gt;Someone who's a regular-expression wizard might even be able to do some fancy formatting with the &amp;quot;fixed width tables&amp;quot; (ie, where the document describes the available operators). &amp;nbsp;Though that would take some real work since it would involve back-tracking to prior lines once you &amp;quot;discover&amp;quot; a table.&lt;/p&gt;</description></item><item><title>re: Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8749351</link><pubDate>Fri, 18 Jul 2008 16:59:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8749351</guid><dc:creator>Andrea Tedeschi</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.andreatedeschi.com/2008/07/generating-powershell-help-in-ms-word.html"&gt;http://www.andreatedeschi.com/2008/07/generating-powershell-help-in-ms-word.html&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Other help options</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8749375</link><pubDate>Fri, 18 Jul 2008 17:03:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8749375</guid><dc:creator>Hal Rottenberg</dc:creator><description>&lt;p&gt;I actually greatly prefer the HTML or compiled help versions floating around on the 'net. &amp;nbsp;A &amp;quot;flat&amp;quot; word doc is useless to me because this is reference material, not a book meant to be read straight through.&lt;/p&gt;
&lt;p&gt;Try these out:&lt;/p&gt;
&lt;p&gt;new-htmlhelp: &lt;a rel="nofollow" target="_new" href="http://tinyurl.com/5c326o"&gt;http://tinyurl.com/5c326o&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PS Graphical Help (v1) &lt;a rel="nofollow" target="_new" href="http://tinyurl.com/63fn4v"&gt;http://tinyurl.com/63fn4v&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PS Graphical Help (v2) &lt;a rel="nofollow" target="_new" href="http://tinyurl.com/5a2x3u"&gt;http://tinyurl.com/5a2x3u&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, most if not all of the good IDEs out there that have Powershell support also have integrated context-sensitive help. &amp;nbsp;PrimalScript, Powershell Analyzer, Admin Script Editor are some. &amp;nbsp;(Visual Studio 2008--not on the list. &amp;nbsp;:&amp;lt; )&lt;/p&gt;</description></item><item><title>Create your own Windows PowerShell manual</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8749828</link><pubDate>Fri, 18 Jul 2008 18:41:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8749828</guid><dc:creator>Rod Trent at myITforum.com</dc:creator><description>&lt;p&gt;The Windows PowerShell teams posts a script that will merge all of the PowerShell text files together&lt;/p&gt;
</description></item><item><title>re: Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8750384</link><pubDate>Fri, 18 Jul 2008 20:34:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8750384</guid><dc:creator>Jay Bazuzi</dc:creator><description>&lt;p&gt;The PowerShell Graphical Help File has the same information, with more rich formatting.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloadS/details.aspx?FamilyID=3b3f7ce4-43ea-4a21-90cc-966a7fc6c6e8&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloadS/details.aspx?FamilyID=3b3f7ce4-43ea-4a21-90cc-966a7fc6c6e8&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;</description></item><item><title>From Text to Help with PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8751022</link><pubDate>Fri, 18 Jul 2008 22:41:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8751022</guid><dc:creator>Dewayne Hardin</dc:creator><description>&lt;p&gt;From Text to Help with PowerShell&lt;/p&gt;
</description></item><item><title>Localization Improvements</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8751137</link><pubDate>Fri, 18 Jul 2008 23:05:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8751137</guid><dc:creator>Markus</dc:creator><description>&lt;p&gt;The version above doesn't work very well on international systems (ie German with Umlauts) so I made some simple modifications to make it work:&lt;/p&gt;
&lt;p&gt;* ensure Get-Content is called with -encoding UTF8&lt;/p&gt;
&lt;p&gt;* wrap the heading and text within CDATA sections; thus we also get rid of the .replace() statements automatically as a positive side-effect&lt;/p&gt;
&lt;p&gt;Here you are:&lt;/p&gt;
&lt;p&gt;# Get-Manual.ps1&lt;/p&gt;
&lt;p&gt;# This script merges the text from all about* help files in the Windows&lt;/p&gt;
&lt;p&gt;# PowerShell installation directory ($pshome) into one Microsoft Word&lt;/p&gt;
&lt;p&gt;# document (.doc) file and opens the file that was created.&lt;/p&gt;
&lt;p&gt;# Set the file name for generated WordML document.&lt;/p&gt;
&lt;p&gt;$doc = &amp;quot;AboutHelp.doc&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;Generating MS Word document ...&amp;quot;&lt;/p&gt;
&lt;p&gt;$sb = New-Object System.Text.StringBuilder&lt;/p&gt;
&lt;p&gt;$null = $sb.Append(@'&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot; ?&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;?mso-application progid=&amp;quot;Word.Document&amp;quot;?&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;w:wordDocument&lt;/p&gt;
&lt;p&gt; &amp;nbsp;xmlns:w=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/office/word/2003/wordml&amp;quot;"&gt;http://schemas.microsoft.com/office/word/2003/wordml&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;xmlns:wx=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/office/word/2003/auxHint&amp;quot;"&gt;http://schemas.microsoft.com/office/word/2003/auxHint&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; w:macrosPresent=&amp;quot;no&amp;quot; w:embeddedObjPresent=&amp;quot;no&amp;quot; w:ocxPresent=&amp;quot;no&amp;quot; xml:space=&amp;quot;preserve&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:styles&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;w:versionOfBuiltInStylenames w:val=&amp;quot;4&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;w:style w:type=&amp;quot;paragraph&amp;quot; w:default=&amp;quot;on&amp;quot; w:styleId=&amp;quot;Normal&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:name w:val=&amp;quot;Normal&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:rPr&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:rFonts w:ascii=&amp;quot;Lucida Console&amp;quot; w:h-ansi=&amp;quot;Lucida Console&amp;quot; w:cs=&amp;quot;Lucida Console&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:sz w:val=&amp;quot;24&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:sz-cs w:val=&amp;quot;24&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:lang w:val=&amp;quot;EN-US&amp;quot; w:fareast=&amp;quot;ZH-CN&amp;quot; w:bidi=&amp;quot;AR-SA&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/w:rPr&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/w:style&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;w:style w:type=&amp;quot;paragraph&amp;quot; w:styleId=&amp;quot;Heading1&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:name w:val=&amp;quot;heading 1&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;wx:uiName wx:val=&amp;quot;Heading 1&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:basedOn w:val=&amp;quot;Normal&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:next w:val=&amp;quot;Normal&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:pPr&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:pStyle w:val=&amp;quot;Heading1&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:keepNext /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:spacing w:before=&amp;quot;240&amp;quot; w:after=&amp;quot;120&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:outlineLvl w:val=&amp;quot;0&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/w:pPr&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:rPr&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:b /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:b-cs /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:kern w:val=&amp;quot;32&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:sz w:val=&amp;quot;32&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:sz-cs w:val=&amp;quot;32&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/w:rPr&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/w:style&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/w:styles&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;w:body&amp;gt;&lt;/p&gt;
&lt;p&gt;'@)&lt;/p&gt;
&lt;p&gt;# Get all text lines in about* help files.&lt;/p&gt;
&lt;p&gt;$filter = &amp;quot;about*.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;dir $PsHome -filter $filter -recurse | %{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $null = $sb.Append(&amp;quot;&amp;lt;w:p&amp;gt;&amp;lt;w:pPr&amp;gt;&amp;lt;w:pStyle w:val=`&amp;quot;Heading1`&amp;quot; /&amp;gt;&amp;lt;/w:pPr&amp;gt;&amp;lt;w:r&amp;gt;&amp;lt;w:t&amp;gt;&amp;lt;![CDATA[&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $null = $sb.Append($_)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $null = $sb.Append(&amp;quot;]]&amp;gt;&amp;lt;/w:t&amp;gt;&amp;lt;/w:r&amp;gt;&amp;lt;/w:p&amp;gt;&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Get-Content $_.FullName -encoding UTF8 | %{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$null = $sb.Append(&amp;quot;&amp;lt;w:p&amp;gt;&amp;lt;w:r&amp;gt;&amp;lt;w:t&amp;gt;&amp;lt;![CDATA[&amp;quot;)&lt;/p&gt;
&lt;p&gt;							$null = $sb.Append($_)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$null = $sb.Append(&amp;quot;]]&amp;gt;&amp;lt;/w:t&amp;gt;&amp;lt;/w:r&amp;gt;&amp;lt;/w:p&amp;gt;&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;$null = $sb.Append(&amp;quot;&amp;lt;/w:body&amp;gt;&amp;lt;/w:wordDocument&amp;gt;&amp;quot;)&lt;/p&gt;
&lt;p&gt;# Write generated string to document file.&lt;/p&gt;
&lt;p&gt;$sb.ToString() | Out-File $doc -encoding UTF8&lt;/p&gt;
&lt;p&gt;# Open the resulting file in MS-Word.&lt;/p&gt;
&lt;p&gt;$null = [System.Diagnostics.Process]::Start(&amp;quot;$pwd\$doc&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;quot;Done&amp;quot;&lt;/p&gt;</description></item><item><title>re: Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8752090</link><pubDate>Sat, 19 Jul 2008 02:05:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8752090</guid><dc:creator>Aaron Perrault</dc:creator><description>&lt;p&gt;I am getting an odd error when i try and run this. &amp;nbsp;When i run the script, i get the following: &amp;nbsp;&lt;/p&gt;
&lt;p&gt;A Text/XML declaration may occur at the very beginning of input. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Location: Line 2, Column:56&lt;/p&gt;
&lt;p&gt;This looks like it could be very helpful. &amp;nbsp;Any assistance would be great.&lt;/p&gt;
&lt;p&gt;app&lt;/p&gt;</description></item><item><title>re: Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8769530</link><pubDate>Thu, 24 Jul 2008 19:25:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8769530</guid><dc:creator>Chris Williams</dc:creator><description>&lt;p&gt;I get this error as well. Can't open the Word doc.&lt;/p&gt;</description></item><item><title>re: Dude, Where's My Manual?</title><link>http://blogs.msdn.com/powershell/archive/2008/07/18/dude-where-s-my-manual.aspx#8770014</link><pubDate>Thu, 24 Jul 2008 23:18:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8770014</guid><dc:creator>Vladimir Averkin</dc:creator><description>&lt;p&gt;About the following error:&lt;/p&gt;
&lt;p&gt;A Text/XML declaration may occur at the very beginning of input. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Location: Line 2, Column:56&lt;/p&gt;
&lt;p&gt;This error can happen if there is a whitespace character at the biginning of the file. It can be SPACE or TAB or LF or CR or any of them in combination. Most probably it is caused by &amp;nbsp;inadvertent insertion of tab or space character into the script while copy-pasting it.&lt;/p&gt;
&lt;p&gt;To fix it please make sure that in the following lines&lt;/p&gt;
&lt;p&gt;$null = $sb.Append(@'&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot; ?&amp;gt;&lt;/p&gt;
&lt;p&gt;there are no extra whitespace characters between @' and &amp;lt;?xml&lt;/p&gt;</description></item></channel></rss>