<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Windows on Jose Castrillo</title>
    <link>https://jose.castrillo.eu/tags/windows/</link>
    <description>Recent content in Windows on Jose Castrillo</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 11 Jun 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jose.castrillo.eu/tags/windows/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Create a .zip using 7z by cmd in Windows</title>
      <link>https://jose.castrillo.eu/post/zip-cmd-windows/</link>
      <pubDate>Tue, 11 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/zip-cmd-windows/</guid>
      <description>&lt;p&gt;After to install the 7z in our windows workstation/server then we need to create our &lt;strong&gt;evironment variables&lt;/strong&gt; to call the function from the cmd [1].&lt;/p&gt;
&lt;p&gt;Then the command below will guide you to zip a simple file:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;7z a -r [myzip] [example.txt]
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;[myzip] - the zip name file&lt;/li&gt;
&lt;li&gt;[example.txt] file used for the example&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To zip a folder&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;7z a [myzip] [folder]
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Docu based thx to the information seen from: [1] &lt;a href=&#34;https://help.goodsync.com/hc/en-us/articles/360007773451-Automated-Backup-with-Compression-and-Encryption&#34;&gt;GlobalEnviroment&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <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>
