<?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 vanstechelman.eu</title>
    <link>https://www.vanstechelman.eu/tags/powershell/</link>
    <description>Recent content in PowerShell on vanstechelman.eu</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 21 Apr 2021 09:38:13 +0000</lastBuildDate><atom:link href="https://www.vanstechelman.eu/tags/powershell/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Managing Windows firewall with PowerShell</title>
      <link>https://www.vanstechelman.eu/content/managing-windows-firewall-with-powershell/</link>
      <pubDate>Wed, 21 Apr 2021 09:38:13 +0000</pubDate>
      
      <guid>https://www.vanstechelman.eu/content/managing-windows-firewall-with-powershell/</guid>
      <description>
        
          
            &lt;p&gt;To check the status of the Windows firewall with PowerShell, type the following:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$FWProfiles = (Get-NetFirewallProfile);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Write-Host &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Windows Firewall Profile Statuses&amp;#34;&lt;/span&gt; -Foregroundcolor Yellow;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$FWProfiles | %{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;If&lt;/span&gt;($_.Enabled &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;){
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        Write-Host &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;The Windows Firewall &lt;/span&gt;$($_.Name)&lt;span style=&#34;color:#e6db74&#34;&gt; profile is enabled&amp;#34;&lt;/span&gt;  -Foregroundcolor Green
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }&lt;span style=&#34;color:#66d9ef&#34;&gt;Else&lt;/span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        Write-Host &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;The Windows Firewall &lt;/span&gt;$($_.Name)&lt;span style=&#34;color:#e6db74&#34;&gt; profile is disabled&amp;#34;&lt;/span&gt; -Foregroundcolor Red
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    };
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To disable the Windows firewall for all profiles with PowerShell, type the following:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
          
          
        
      </description>
    </item>
    
    <item>
      <title>Testing for impact of Infineon&#39;s vulnerable RSA generation (CVE-2017-15361)</title>
      <link>https://www.vanstechelman.eu/content/testing-for-impact-of-infineons-vulnerable-rsa-generation-cve-2017-15361/</link>
      <pubDate>Tue, 17 Oct 2017 14:19:45 +0000</pubDate>
      
      <guid>https://www.vanstechelman.eu/content/testing-for-impact-of-infineons-vulnerable-rsa-generation-cve-2017-15361/</guid>
      <description>
        
          
            &lt;p&gt;A security vulnerability exists in the firmware of certain Infineon Trusted Platform Module (TPM) chipsets. The vulnerability weakens key strength. It is weakened so much that it is possible to derive the private key from the public key for RSA key pairs of up to 2048-bit.
This page contains a number of manners in which you can verify whether your computer contains an affected Infineon TPM chip that generates vulnerable RSA key pairs.&lt;/p&gt;
          
          
        
      </description>
    </item>
    
    <item>
      <title>How to run the WSUS Server Cleanup Wizard from command-line</title>
      <link>https://www.vanstechelman.eu/content/how-to-run-the-wsus-server-cleanup-wizard-from-command-line/</link>
      <pubDate>Thu, 13 Jul 2017 18:34:06 +0000</pubDate>
      
      <guid>https://www.vanstechelman.eu/content/how-to-run-the-wsus-server-cleanup-wizard-from-command-line/</guid>
      <description>
        
          
            &lt;p&gt;When running the WSUS Server Cleanup Wizard from the MMC snap-in, it can occur that you receive the following WSUS database error:&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Error: Database Error&lt;br&gt;
An error occurred when trying to perform a database operation. This can happen if the database is very busy, if the database service is stopped, if the connection to the database is lost, of if the Post-Installation task is not completed successfully. Please contact your system administrator if the problem persists.&lt;br&gt;
&lt;br&gt;
Click Reset Server Node to try to connect to the server again.&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
If you haven&amp;rsquo;t performed the cleanup in a long time, then this can happen. So you might decide to read through the manual of the wsusutil.exe tool where you think that the &lt;strong&gt;deleteunneededrevisions&lt;/strong&gt; switch will resolve all your problems, however, it seems that the wsusutil.exe parameter &lt;strong&gt;deleteunneededrevisions doesn&amp;rsquo;t exist on WSUS 3.1.&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
Luckily, you can achieve the same thing using powershell. The advantages here are:\&lt;/p&gt;
          
          
        
      </description>
    </item>
    
  </channel>
</rss>