<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Powershell on Jose Castrillo</title>
    <link>https://jose.castrillo.eu/tags/powershell/</link>
    <description>Recent content in Powershell on Jose Castrillo</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 25 Apr 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jose.castrillo.eu/tags/powershell/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Output IPCONFIG report to HTML by PowerShell</title>
      <link>https://jose.castrillo.eu/post/report_script_powershell/</link>
      <pubDate>Thu, 25 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/report_script_powershell/</guid>
      <description>&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$file = &amp;#34;C:\Users\jcr\a.html&amp;#34;
$ipconfig=ipconfig /all |%{&amp;#34;$_&amp;lt;br/&amp;gt;&amp;#34;}

$body=@&amp;#34;
&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Network Report&amp;lt;/title&amp;gt;
    &amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;IPConfig /All&amp;lt;/h1&amp;gt;
    &amp;lt;pre&amp;gt;$ipconfig&amp;lt;/pre&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&amp;#34;@
$body | Out-File $file
. $file
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
