<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ Windows 10 - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ Windows 10 - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Sun, 31 May 2026 14:26:08 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/windows-10/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ How to Free Up and Automatically Manage Disk Space for WSL on Windows 10/11 ]]>
                </title>
                <description>
                    <![CDATA[ Windows Subsystem for Linux (WSL) lets you run a Linux environment directly on Windows. This is particularly useful for web development where you can develop and test applications in a Linux environme ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-free-up-and-automatically-manage-disk-space-for-wsl-on-windows-1011/</link>
                <guid isPermaLink="false">6893e671640b08f689368ee6</guid>
                
                    <category>
                        <![CDATA[ WSL ]]>
                    </category>
                
                    <category>
                        <![CDATA[ wsl2 ]]>
                    </category>
                
                    <category>
                        <![CDATA[ disk management ]]>
                    </category>
                
                    <category>
                        <![CDATA[ disk ]]>
                    </category>
                
                    <category>
                        <![CDATA[ disk space ]]>
                    </category>
                
                    <category>
                        <![CDATA[ automation ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Powershell ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                    <category>
                        <![CDATA[ windows 11 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ brooklyn ]]>
                </dc:creator>
                <pubDate>Wed, 06 Aug 2025 23:34:09 +0000</pubDate>
                <media:content url="https://cdn.hashnode.com/res/hashnode/image/upload/v1754523230294/70893973-fddf-42a9-b41a-2a8f94a47e22.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Windows Subsystem for Linux (<a href="https://learn.microsoft.com/en-us/windows/wsl/install">WSL</a>) lets you run a Linux environment directly on Windows. This is particularly useful for web development where you can develop and test applications in a Linux environment without leaving Windows. You can even run <a href="https://contribute.freecodecamp.org/how-to-setup-wsl/">freeCodeCamp locally</a> with it!</p>
<p>But managing disk space can be a quite a challenge, as WSL uses virtual hard disks that do not automatically free up unused space.</p>
<p>This tutorial will guide you through the process of manually compacting your WSL virtual hard disks. We’ll automate this task using a PowerShell script, ensuring that your WSL environment remains efficient and clutter-free.</p>
<h2 id="heading-reclaim-your-space">Reclaim Your Space</h2>
<p>WSL uses a virtualization platform to install Linux distributions on your Windows system. Each distribution you add gets its own Virtual Hard Disk (VHD), which uses the ext4 file system (common in Linux). It’s saved on your Windows drive as an ext4.vhdx file.</p>
<p>Key issues here:</p>
<ul>
<li><p>Inefficient storage: by default, VHD files <strong>do not reclaim</strong> unused space. This means that when you delete a file in WSL, the associated disk space isn’t immediately freed up.</p>
</li>
<li><p>Disk space consumption: due to that inefficient storage, the <strong>VHD files can grow large</strong> thanks to that accumulated data, especially if you’re a WSL heavy user.</p>
</li>
<li><p>Need for maintenance: you may not know that you need to <strong>compact</strong> your VHD files in order to reclaim disk space.</p>
</li>
</ul>
<p>If you notice that your free disk space is shrinking even after deleting files and apps, WSL might be the reason. This tutorial will help you keep your WSL and Windows environment running smoothly.</p>
<h2 id="heading-table-of-contents">Table of Contents</h2>
<ul>
<li><p><a href="#heading-part-1-how-to-manually-compact-your-virtual-hard-disk">Part 1: How to Manually Compact Your Virtual Hard Disk</a></p>
<ul>
<li><p><a href="#heading-prerequisites">Prerequisites</a></p>
</li>
<li><p><a href="#heading-step-1-verify-your-wsl-version-and-status">Step 1: Verify your WSL version and status</a></p>
</li>
<li><p><a href="#heading-step-2-list-all-installed-distributions-verbosely">Step 2: List all installed distributions verbosely</a></p>
</li>
<li><p><a href="#heading-step-3-locate-your-linux-virtual-hard-drive-vhdx-path">Step 3: Locate your linux Virtual Hard Drive (VHDX) path</a></p>
</li>
<li><p><a href="#heading-step-4-shut-down-all-wsl-instances">Step 4: Shut down all WSL instances</a></p>
</li>
<li><p><a href="#heading-step-5-compact-the-linux-virtual-hard-drive-using-diskpart">Step 5: Compact the Linux virtual hard drive using DiskPart</a></p>
</li>
<li><p><a href="#heading-step-6-restart-wsl-and-verify">Step 6: Restart WSL and verify</a></p>
</li>
</ul>
</li>
<li><p><a href="#heading-part-2-how-to-make-your-life-easier-with-automation">Part 2: How to Make Your Life Easier with Automation</a></p>
<ul>
<li><p><a href="#heading-prerequisites-1">Prerequisites</a></p>
</li>
<li><p><a href="#heading-step-1-find-out-installed-wsl2-distributions">Step 1: Find out installed WSL2 distributions</a></p>
</li>
<li><p><a href="#heading-step-2-select-a-distro-to-compact">Step 2: Select a distro to compact</a></p>
</li>
<li><p><a href="#heading-step-3-locate-the-ext4vhdx-file">Step 3: Locate the ext4.vhdx File</a></p>
</li>
<li><p><a href="#heading-step-4-the-confirmation-prompt">Step 4: The confirmation prompt</a></p>
</li>
<li><p><a href="#heading-step-5-shut-down-wsl-and-compact">Step 5: Shut Down WSL and compact</a></p>
</li>
<li><p><a href="#heading-step-6-run-a-diskpart-script">Step 6: Run a DiskPart script</a></p>
</li>
</ul>
</li>
</ul>
<h2 id="heading-part-1-how-to-manually-compact-your-virtual-hard-disk"><strong>Part 1: How to Manually Compact Your Virtual Hard Disk</strong></h2>
<p>Let's start by going through the process manually. This section will guide you through checking your WSL version and associated Linux distributions, finding VHD files, shutting down WSL, and compacting the virtual disk.</p>
<h3 id="heading-prerequisites"><strong>Prerequisites</strong></h3>
<ul>
<li><p>Windows 10 (20H1/2004+) or Windows 11 with WSL2 installed</p>
</li>
<li><p>The PowerShell or Command Prompt running as <strong>Administrator</strong> (from the Windows menu, right click the icon and choose run as Administrator).</p>
</li>
</ul>
<h3 id="heading-step-1-verify-your-wsl-version-and-status"><strong>Step 1: Verify your WSL version and status</strong></h3>
<p>First, make sure you’re running on WSL version 2 (commonly referred as WSL2). The first version is outdated and WSL2 provides significant improvements. Open PowerShell (as Admin) or Command Prompt (as Admin) and run:</p>
<pre><code class="language-powershell">wsl -v

wsl --status
</code></pre>
<p>These commands display the WSL client version and whether your default distro is using WSL 2. Here’s the output of the <code>wsl -v</code> command:</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754250376279/ef11af4b-ba5b-43f9-9532-db2634eed154.png" alt="Command prompt displaying WSL version 2.5.9.0, with corrupted or incomplete text following &quot;Kernel version:&quot;, &quot;WSLg version:&quot;, and other version labels." width="421" height="143" loading="lazy">

<p>And here’s the output of the <code>wsl --status</code> command.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754250364365/6cea2d97-0796-4320-8f84-58d1b5e62c5e.png" alt="Command line text showing &quot;C:sers>wsl --status&quot; with the information &quot;Default Distribution: Ubuntu&quot; and &quot;Default Version: 2&quot;." width="243" height="71" loading="lazy">

<h3 id="heading-step-2-list-all-installed-distributions-verbosely"><strong>Step 2: List all installed distributions verbosely</strong></h3>
<p>To see a detailed list of your WSL distributions (including which version each uses), run:</p>
<pre><code class="language-powershell">wsl.exe --list --verbose
</code></pre>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754250281542/1826814a-5516-483e-b8ab-6477fd950e21.png" alt="Output of  the WSL --list --verbose command." width="302" height="67" loading="lazy">

<p>Above you can see the output of the WSL <code>--list --verbose</code> command.</p>
<p>Look for your distro name (for example, “<em>Ubuntu</em>”) and note its WSL version. If it shows “Version 2”, you can proceed with compaction.</p>
<h3 id="heading-step-3-locate-your-linux-virtual-hard-drive-vhdx-path"><strong>Step 3: Locate your linux Virtual Hard Drive (VHDX) path</strong></h3>
<p>Each WSL distro’s files live in a <a href="https://en.wikipedia.org/wiki/VHD_(file_format)">VHDX file</a> on your Windows drive. To find the path for any Linux distribution, use this PowerShell snippet:</p>
<pre><code class="language-powershell">(Get-ChildItem `

-Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss `

| Where-Object { $_.GetValue("DistributionName") -eq 'YOUR_DISTRO_NAME' }

).GetValue("BasePath") + "\ext4.vhdx"
</code></pre>
<p>Where you replace <code>YOUR_DISTRO_NAME</code> with yours (Ubuntu, Debian, Kali-linux..). Here’s the output of the command shown above in PowerShell (the filepath has been anonymized):</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754251303855/ea3b3880-5804-4f50-97c8-327ffd017084.png" alt="A PowerShell command is displayed, used to locate the ext4.vhdx file for the Ubuntu distribution. The command retrieves the Windows Subsystem for Linux (WSL) base path for Ubuntu." width="616" height="74" loading="lazy">

<p>This command reads the registry key for your linux distribution, then appends “\ext4.vhdx” to build the full file path.</p>
<p>Make sure you copy the whole line. We will need it in later stages.</p>
<h3 id="heading-step-4-shut-down-all-wsl-instances"><strong>Step 4: Shut down all WSL instances</strong></h3>
<p>Before you can compact any virtual drive, make sure WSL is completely shut down. In PowerShell or Command Prompt (still as Administrator), run:</p>
<pre><code class="language-powershell">wsl.exe --shutdown
</code></pre>
<h3 id="heading-step-5-compact-the-linux-virtual-hard-drive-using-diskpart"><strong>Step 5: Compact the Linux virtual hard drive using DiskPart</strong></h3>
<p>You successfully gathered all the needed information (about your system, the available distros, and their VHDX filepath) to proceed with the main task. In this step, you actually proceed with the compaction.</p>
<ol>
<li>Launch DiskPart in the same elevated (<em>admin</em>) shell:</li>
</ol>
<pre><code class="language-powershell">diskpart
</code></pre>
<p>DiskPart will open in a new window. It's a Windows command-line tool for managing disk partitions. Be cautious when using it, as incorrect actions can cause serious data loss.</p>
<ol>
<li>In the DiskPart prompt, select the VHDX file you found earlier. Replace the path as displayed below with your actual path (the line you copied before):</li>
</ol>
<pre><code class="language-powershell">select vdisk file="C:\Users\username\AppData\path\to\ext4.vhdx"
</code></pre>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754251748072/91795798-0896-4fcc-994c-0ab311955bee.png" alt="Screenshot of a command prompt window showing Microsoft DiskPart version information. A command is entered to select a virtual disk file, and a message confirms successful selection." width="920" height="150" loading="lazy">

<p>The above is the output of the select vdisk command (some data has been anonymized).</p>
<ol>
<li>Attach the virtual drive in read-only mode:</li>
</ol>
<p>Compaction only needs to scan the empty blocks in the file, not write to the Linux filesystem inside. Read-only mode guarantees that DiskPart only inspect the blocks for zero‐trimming without any chance of damaging or altering your Linux filesystem.</p>
<pre><code class="language-powershell">attach vdisk readonly
</code></pre>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754251937734/a90af720-1511-42cc-bc37-63439d855907.png" alt="Command prompt showing the output for &quot;DISKPART> attach vdisk readonly&quot; with a successful attachment message." width="462" height="107" loading="lazy">

<p>You can see in the screenshot above that the virtual hard drive has been successfully attached.</p>
<ol>
<li>Compact the disk:</li>
</ol>
<p>This frees up the disk space by shrinking the physical size of the <code>.vhdx</code> file to match the <strong>actual used data</strong> inside.</p>
<pre><code class="language-powershell">compact vdisk
</code></pre>
<p>This operation might take a while. When you see the <code>“DiskPart successfully compacted the virtual disk file”</code> message, proceed with the next step. In the image below, the virtual hard drive has been successfully compacted.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754252148605/51cc9739-775b-4a84-a526-7c2a6d2a9722.png" alt="Terminal output showing &quot;DISKPART> compact vdisk&quot; with &quot;100 percent completed,&quot; indicating successful compaction of the virtual disk file." width="450" height="96" loading="lazy">

<ol>
<li>Detach the virtual drive:</li>
</ol>
<pre><code class="language-powershell">detach vdisk
</code></pre>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754252460797/e29387d7-4f03-4ddb-80f7-f14a5051b0fe.png" alt="Command prompt showing &quot;DISKPART> detach vdisk&quot; and a confirmation message that DiskPart successfully detached the virtual disk file." width="446" height="72" loading="lazy">

<p>There you go – the virtual hard drive has been successfully detached.</p>
<p>This command releases any locks on the virtual drive and effectively dismounts it. If you don't use this command, the file remains "in use," preventing WSL (or you) from accessing it until you reboot or manually force it closed.</p>
<p>6. Exit DiskPart:</p>
<pre><code class="language-powershell">exit
</code></pre>
<h3 id="heading-step-6-restart-wsl-and-verify"><strong>Step 6: Restart WSL and verify</strong></h3>
<p>Back in PowerShell or Command Prompt, you can relaunch your distro:</p>
<pre><code class="language-powershell">wsl -d YOUR_DISTRO_NAME
</code></pre>
<p>You can even try the Unix <code>df -h</code> command in your WSL prompt to check your new available disk spaces.</p>
<p>Congrats, you just achieved a maintenance task that can free up lots of gigabytes of storage over time. Now, it’s time to automate.</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754321783829/4325a626-806e-47e7-9147-a76f4c91a93a.jpeg" alt="A minimalistic white rectangular button with a cable on a pink surface." style="display:block;margin:0 auto" width="640" height="360" loading="lazy">

<h2 id="heading-part-2-how-to-make-your-life-easier-with-automation"><strong>Part 2: How to Make Your Life Easier with Automation</strong></h2>
<p>Since it's often hard to remember exactly where your WSL distro is located and you probably won't use it very often, this PowerShell script will automate the entire process we covered in part 1. Here's a preview of the steps you'll follow:</p>
<ul>
<li><p>Detect installed WSL distributions.</p>
</li>
<li><p>Select one (and handle the cases there are more than one).</p>
</li>
<li><p>Locate the corresponding <code>ext4.vhdx</code> file.</p>
</li>
<li><p>Shut down WSL and use DiskPart to compact the virtual disk.</p>
</li>
</ul>
<h3 id="heading-prerequisites"><strong>Prerequisites</strong></h3>
<ul>
<li><p>Windows 10 (20H1/2004+) or Windows 11 with WSL 2 enabled.</p>
</li>
<li><p>PowerShell or Command Prompt (as Administrator).</p>
</li>
</ul>
<p>You’ll also need a code editor. The Windows notepad is enough for completing this task. You can also use an IDE (Integrated Development Environment) like VS Code or an ISE (Integrated Scripting Environment) like PowerShell ISE (included with Windows).</p>
<p>To test the script, download it from <a href="https://github.com/hyperphantasia/WSL-VHDX-Compact/blob/c5c2e346ab0dd1a8dbc6130f8d372af8022ddd60/wsl_compactor.ps1">GitHub</a>. Open an elevated PowerShell or Command Prompt and navigate to the script’s folder. With just the command below, you will be able to run it and free up some disk space:</p>
<pre><code class="language-powershell">powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\wsl_compactor.ps1
</code></pre>
<h3 id="heading-step-1-find-out-installed-wsl2-distributions"><strong>Step 1: Find out installed WSL2 distributions</strong></h3>
<p>One of the main challenges is to find the Linux distributions available on the host system. Let’s check the first block and see what’s it about:</p>
<pre><code class="language-powershell">$lxssKey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss'
\(distros = Get-ChildItem \)lxssKey | ForEach-Object {
    \(p = Get-ItemProperty \)_.PSPath
    [PSCustomObject]@{
        Name     = $p.DistributionName
        BasePath = $p.BasePath
    }
}
</code></pre>
<p>WSL records each distribution under this windows registry key:</p>
<p><code>HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss</code></p>
<p>Each subkey has two important values:</p>
<ul>
<li><p><strong>DistributionName</strong> (for example, Ubuntu)</p>
</li>
<li><p><strong>BasePath</strong> (This is where the distribution files are stored. It’s the directory that contains the <code>ext4.vhdx</code> file.)</p>
</li>
</ul>
<p>The script uses <code>Get-ChildItem</code> and <code>Get-ItemProperty</code> to enumerate these subkeys and build a list of available Linux distributions.</p>
<pre><code class="language-powershell">if ($distros.Count -eq 0) {
Throw-And-Exit "No WSL distros found in the registry."
}
</code></pre>
<p>If no distributions are found, the script terminates and prints this error message on the terminal: <code>"No WSL distros found in the registry.”</code></p>
<h3 id="heading-step-2-select-a-distro-to-compact"><strong>Step 2: Select a distro to compact</strong></h3>
<p>Here, the process has two steps:</p>
<ul>
<li>If multiple distros are found, it displays all the distros with a numbered menu and prompts you to choose one:</li>
</ul>
<pre><code class="language-powershell">if ($distros.Count -gt 1) {
    Write-Host "Multiple distros detected. Please choose one:`n"

    for (\(i = 0; \)i -lt \(distros.Count; \)i++) {
        Write-Host "[\((\)i+1)] \((\)distros[$i].Name)"
    }
    \(selected = \)distros[[int]$choice - 1]
}
</code></pre>
<p>The computed menu will look like this:</p>
<pre><code class="language-markdown">Multiple distros detected. Please choose one:

[1] Ubuntu 20.04

[2] Debian

[3] Alpine
</code></pre>
<ul>
<li>If only one distribution is found on the host system, the script selects it automatically:</li>
</ul>
<pre><code class="language-powershell">else {
\(selected = \)distros[0]
}
</code></pre>
<p>When setting up a distribution, whether chosen manually by the user or selected automatically, <strong>the important information is the path to each distribution's virtual hard disk</strong>. This path is saved in two main variables: <code>'distro'</code> (which identifies the specific distribution) and <code>'basePath'</code> (which shows where its virtual disk is located).</p>
<pre><code class="language-powershell">\(distro = \)selected.Name
\(basePath = \)selected.BasePath

Write-Host "`nSelected distro: $distro" -ForegroundColor DarkYellow
Write-Host "BasePath: $basePath"
</code></pre>
<p>The lines above display an output that looks like this:</p>
<pre><code class="language-markdown">Selected distro: Ubuntu (or any other distro)
BasePath: C:\Users\&lt;User_name&gt;\AppData\Local\Packages\…
</code></pre>
<p>Like for all other steps, it’s important to consider the case of something going wrong, by throwing an error and exiting the program:</p>
<pre><code class="language-powershell">if (-not (Test-Path $basePath)) {
Throw-And-Exit "BasePath '$basePath' does not exist on disk."
}
</code></pre>
<h3 id="heading-step-3-locate-the-ext4vhdx-file"><strong>Step 3: Locate the ext4.vhdx File</strong></h3>
<p>In the first step, we collected the information we need about the available distributions and where they are stored on the Windows system. By choosing an entry (either manually or automatically), we can find the correct file. Sometimes, the ext4 file is located between the base path and a <em>LocalState</em> folder. This script manages both situations. It builds the usual locations where the file can be found.</p>
<p>They look like this:</p>
<ul>
<li><p><code>$BasePath\ext4.vhdx</code></p>
</li>
<li><p><code>$BasePath\LocalState\ext4.vhdx</code></p>
</li>
</ul>
<p>This can translate into something like this on your system (option 1):</p>
<pre><code class="language-markdown">C:\Users\Alice\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\ext4.vhdx
</code></pre>
<p>or like this (option 2):</p>
<pre><code class="language-markdown">C:\Users\Alice\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\ext4.vhdx
</code></pre>
<p>(You might find out that your WSL2 distro is located in some other directory than “Packages” – but don’t worry, your BasePath will match the correct folders).</p>
<p>The idea is to build the two possible path options:</p>
<pre><code class="language-powershell">$possible = @(
Join-Path $basePath 'ext4.vhdx'
Join-Path $basePath 'LocalState\ext4.vhdx'
)
</code></pre>
<p>And pick the first one that actually contains the file:</p>
<pre><code class="language-powershell">\(vhdx = \)possible | Where-Object { Test-Path $_ } | Select-Object -First 1
</code></pre>
<p>Again, we throw an error message if no suitable file is found:</p>
<pre><code class="language-powershell">if (-not $vhdx) {
Throw-And-Exit "No ext4.vhdx found under '$basePath'."
}
</code></pre>
<h3 id="heading-step-4-the-confirmation-prompt"><strong>Step 4: The confirmation prompt</strong></h3>
<p>Disk management tools require caution and you need to understand the potential consequences of your actions. A confirmation prompt is always a good safeguard to prevent accidental data loss or unwanted system changes.</p>
<p>Before proceeding, the script shows you:</p>
<ul>
<li><p>a Distro name</p>
</li>
<li><p>its BasePath</p>
</li>
<li><p>the VHDX file path</p>
</li>
</ul>
<pre><code class="language-powershell">Write-Host "`nAbout to compact this WSL distro:" -ForegroundColor Magenta
Write-Host " Distro : $distro"
Write-Host " BasePath : $basePath"
Write-Host " VHDX file: $vhdx`n"
</code></pre>
<p>It then prompts <strong>“Are you sure you want to proceed? (Y/N)”:</strong></p>
<pre><code class="language-powershell">Write-Host "Are you sure you want to proceed? (Y/N) " -ForegroundColor DarkCyan -NoNewline

# Then read the response
$answer = Read-Host
</code></pre>
<p>You’re then prompted to Type Y (case-insensitive) to continue or anything else to cancel.</p>
<pre><code class="language-powershell">if ($answer.ToUpper() -ne 'Y') {
    Write-Warning "Operation canceled"
    exit
}
</code></pre>
<p>For the two steps above, I had to use a trick to print the question in color but a simple option (without colors) could be:</p>
<pre><code class="language-powershell">if ((Read-Host 'Are you sure you want to proceed? (Y/N)').ToUpper() -ne 'Y') { 
    Write-Warning 'Operation canceled'
    exit 
}
</code></pre>
<h3 id="heading-step-5-shut-down-wsl-and-compact"><strong>Step 5: Shut down WSL and compact</strong></h3>
<p>Before proceeding to the DiskPart utility, it’s important to stop all running WSL instances. Pass the shutdown command directly in PowerShell.</p>
<pre><code class="language-powershell">Write-Host "Shutting down WSL…" -ForegroundColor Cyan
wsl.exe –shutdown
</code></pre>
<p>A common mistake is to forget to launch PowerShell or the Command Prompt with Administrator rights. You can prevent this case with a message:</p>
<pre><code class="language-powershell">if ($LASTEXITCODE -ne 0) {
     Throw-And-Exit "Failed to shut down WSL (exit code $LASTEXITCODE). Are you running as Administrator?"
}
</code></pre>
<h3 id="heading-step-6-run-a-diskpart-script"><strong>Step 6: Run a DiskPart script</strong></h3>
<h4 id="heading-building-the-script">Building the script:</h4>
<p>The process is the same as in the manual part, but this time, we ‘inject’ the ready-to-go DiskPart commands into the script.</p>
<pre><code class="language-powershell">$dpScript = @"
select vdisk file="$vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit
"@
</code></pre>
<p>Before launching, there are two steps you need to take:</p>
<ol>
<li>The PowerShell script writes the lines above to a temporary file:</li>
</ol>
<pre><code class="language-powershell">$tempFile = [IO.Path]::GetTempFileName()
Set-Content -LiteralPath \(tempFile -Value \)dpScript -Encoding ASCII
</code></pre>
<p>This is the equivalent to the commands passed in the manual part:</p>
<p><code>select vdisk file="</code><a href="/home/C:/"><code>C:\</code></a><code>…\ext4.vhdx" # full path to the vdisk file</code></p>
<p><code>attach vdisk readonly</code></p>
<p><code>compact vdisk</code></p>
<p><code>detach vdisk</code></p>
<p><code>exit</code></p>
<ol>
<li>Compacting can take a while, especially if you’ve never de-cluttered your virtual drive before. It’s wise to show a warning before proceeding:</li>
</ol>
<pre><code class="language-powershell">Write-Host "Running DiskPart to compact the VHDX. Be patient, this might take a while..." -ForegroundColor Cyan
</code></pre>
<h4 id="heading-invoke-diskpart"><strong>Invoke DiskPart:</strong></h4>
<pre><code class="language-powershell"># Run DiskPart with the script saved to the temporary file and process each output line as it arrives
diskpart /s $tempFile | ForEach-Object {
    # Grab any "NN percent" type message from the line
    if ($_ -match '(\d+)\s+percent') {
        # Only print when the percentage actually changes
        Write-Host "\((\)Matches[1])% completed"
    }
    else {
        # Just echo all over line-types, verbatim
        Write-Host $_
    }
}
</code></pre>
<p>Several points to note here:</p>
<ul>
<li><p>It runs <code>diskpart /s $tempFile</code>: DiskPart reads and executes commands from the temporary file into the PowerShell loop for on-the-fly processing.</p>
</li>
<li><p>For a better user-experience: the snippet below does the trick of filtering out repeated status values by comparing <code>\(pct</code> with the sentinel <code>\)lastPct</code>, and only writing new lines when they differ.</p>
</li>
</ul>
<p>How?</p>
<p>Before entering the loop, we initialize:</p>
<pre><code class="language-powershell">$lastPct with -1
$lastPct = -1 # We initiate a sentinel value
</code></pre>
<p>We are having a guaranteed “first” value that no real percent (0–100) will equal. That way, as soon as you see the first 0 percent, 10 percent, or whatever, it differs from -1.</p>
<p>Then:</p>
<pre><code class="language-powershell">if ($_ -match '(\d+)\s+percent') {
    # Print only when the percentage changes
    Write-Host "\((\)Matches[1])% completed"
}
</code></pre>
<p>This guarantees that on the very first percentage update (say “0 percent” or “10 percent”), <code>\(pct –ne \)lastPct</code> will be <code>true</code>, so it emits the first line. Afterwards, <code>$lastPct</code> holds the last real percentage, and it only prints again when a new, different progress percentage comes in.</p>
<p>The output looks more clean:</p>
<pre><code class="language-markdown">10% completed
20% completed
…
</code></pre>
<p>Otherwise, it’ll flood the screen with dozens of identical “20 percent completed” (for example) updates.</p>
<p>Of course we handle the case of other values (non percent lines) normally:</p>
<pre><code class="language-powershell">else {
    # non-percent lines: print verbatim
    if ($_ -match '\S') {
        Write-Host $_
    }
}
</code></pre>
<p>Once the process is done, don’t forget to clean up the tempfile.</p>
<pre><code class="language-powershell">Remove-Item $tempFile -ErrorAction SilentlyContinue
</code></pre>
<p>By the end of the process, you should see something like this</p>
<pre><code class="language-markdown">Leaving DiskPart...
</code></pre>
<p>Okay, that’s it for the scripting! If you collected all the snippets so far, just save them with a <code>.ps1</code> file extension, or download the full example from this <a href="https://github.com/hyperphantasia/WSL-VHDX-Compact">GitHub repository</a>.</p>
<h3 id="heading-usage"><strong>Usage:</strong></h3>
<p>You now have a complete understanding of what's happening. Ready to get started? In Windows, open the Command Prompt or PowerShell <strong>as an administrator.</strong></p>
<ul>
<li><p>Navigate to the directory containing your <code>.ps1</code>&nbsp;script.</p>
</li>
<li><p>Execute the script with the following command, replacing <code>&lt;File_name_here&gt;</code> with your actual file name:</p>
</li>
</ul>
<pre><code class="language-powershell">powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\&lt;File_name_here&gt;.ps1
</code></pre>
<p>The <code>-NoProfile -ExecutionPolicy Bypass</code> parameters launch PowerShell in a clean, unrestricted environment that ignores user-specific settings and allows script execution without security restrictions. Don’t worry, in this case, it’s okay to do that.</p>
<p><em>Wait…wait…wait...</em></p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1754315563256/a709192a-6626-4a12-b411-46c8591c5eb6.jpeg" alt="Screenshot of a command line interface showing the execution of a PowerShell script to compact a WSL (Windows Subsystem for Linux) distro. The script confirms the selected distro &quot;Ubuntu&quot; and proceeds to compact the VHDX file using DiskPart. Progress is shown in percentage increments, with final messages indicating successful completion of the compacting process." style="display:block;margin:0 auto" width="878" height="500" loading="lazy">

<p>Well bravo! You’ve just reclaimed all that unused space inside your WSL2 (almost) hands free!</p>
<p>Now, you can take it a step further by modifying this script to run completely automatically, without the confirmation prompt (step 4). You can also schedule it as a regular maintenance task using a task scheduler:</p>
<pre><code class="language-powershell">schtasks /create /tn "Schedule_name" /tr "powershell.exe -ExecutionPolicy Bypass -File C:\path\to\script.ps1" /sc monthly /d 15 /st 09:00
</code></pre>
<p>This is an example for a monthly execution where <code>/d 15</code> means 15th of each month and <code>/st 09:00</code> is a start time set at 9 am.</p>
<p>That's it! Remember, regular maintenance, whether you do it manually or automatically, is essential to prevent unnecessary disk space usage and ensure a smooth experience with WSL.</p>
<h3 id="heading-thanks-for-reading">Thanks for reading!</h3>
<p>You can find a list of my current projects on <a href="https://github.com/hyperphantasia?tab=repositories">GitHub</a>.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Device Descriptor Request Failed – How to Fix Unknown USB Device Error in Windows 10 ]]>
                </title>
                <description>
                    <![CDATA[ Recently my uncle, who lives in Australia, sent my parents, who live in South Africa, a flash drive that was full of pictures of our Australian family getting up to various Australian activities.  But it was very frustrating for my poor Mom when her ... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/device-descriptor-request-failed-windows-error-solved/</link>
                <guid isPermaLink="false">66b0c58563f46c9b72e6d5d8</guid>
                
                    <category>
                        <![CDATA[ error ]]>
                    </category>
                
                    <category>
                        <![CDATA[ usb ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Gavin Lon ]]>
                </dc:creator>
                <pubDate>Fri, 28 Oct 2022 23:49:33 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/10/Screenshot1.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Recently my uncle, who lives in Australia, sent my parents, who live in South Africa, a flash drive that was full of pictures of our Australian family getting up to various Australian activities. </p>
<p>But it was very frustrating for my poor Mom when her laptop would not recognise the USB device (the flash drive containing the Australian family pictures). </p>
<p>I have the <em>privilege</em> of being the goto family member when anything goes wrong with something computer related, because I am a computer programmer. This means I must know everything about USB ports, printers, scanners, basically all things computer related….right? </p>
<p>Well, at the time, I must confess I didn’t have a clue why Windows 10 could not recognise the flash drive. So I did a bit of research. In this particular case the external device (the flash drive) was the offending party. </p>
<p>It turns out, however, that this “Device Descriptor Request Failed“ issue can occur for many different reasons, some hardware related and others software related. </p>
<p>In this article I'll cover the possible hardware-related issues first, and then we'll get into the possible software-related issues. With each cause of the “Device Descriptor Request Failed“ error, I’ll take you through the steps you'll need to follow to resolve the issue.</p>
<h2 id="heading-possible-causes-and-fixes-for-device-descriptor-request-failed-error">Possible Causes and Fixes for "Device Descriptor Request Failed" Error</h2>
<p>The following seven headings list out what may have caused the “Device Descriptor Request Failed“ issue. In the subsequent sections of this article, I'll give you details on how you might be able to resolve the issue.</p>
<ul>
<li><strong>USB Hardware Fault</strong></li>
<li><strong>Run Hardware and Device Troubleshooter</strong></li>
<li><strong>Update USB Device Driver</strong></li>
<li><strong>Disable Fast Startup</strong></li>
<li><strong>Disable the USB Selective Suspend Setting</strong></li>
<li><strong>Remove USB Device and Scan for Hardware Changes</strong></li>
<li><strong>Update Windows 10</strong></li>
</ul>
<h2 id="heading-usb-hardware-fault">USB Hardware Fault</h2>
<p>The “Device Descriptor Request Failed” issue may have been caused by a hardware issue. We can easily test that the issue stems from a hardware issue and not an operating system related issue by performing the following checks:</p>
<p>First, plug the relevant device into a different USB port on the same computer. For good measure try a few USB ports. If the relevant device is working when plugged into another USB port, this means that the source of the issue is likely the USB port used when the issue arrises. </p>
<p>In this case you can simply mark the USB port causing the issue as faulty, and use the USB port that works. You also may wish to replace the offending USB port at some stage.</p>
<p>Second, you can plug the relevant device into a USB port on a different computer. If the device doesn’t work on a different computer, this points to the device itself being the issue. Your only solution in this case may be to repair or replace the device itself.</p>
<h2 id="heading-run-hardware-and-devices-troubleshooter">Run Hardware and Devices Troubleshooter</h2>
<p>Windows provides us with a very convenient facility that you can use for performing troubleshooting. You are able to use this facility to trouble shoot possible hardware issues. </p>
<p>Follow these steps to use the <strong>Troubleshooter</strong> facility:</p>
<ul>
<li>Firstly invoke the “Run” box. You can do this by pressing Windows key + R.</li>
<li>Enter the following command into the “Run” box: <strong>msdt.exe -id DeviceDiagnostic</strong></li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-235.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Press the <strong>OK</strong> button.</li>
<li>Select Advanced – and make sure that the “Apply repairs automatically” checkbox is checked. Press the “Next” button and follow the instructions to preform the troubleshooting task.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-236.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h2 id="heading-uninstall-and-update-usb-device-driver">Uninstall and Update USB Device Driver</h2>
<p>To uninstall the USB device driver we can use the <strong>Device Manager</strong> facility provided by windows. To run <strong>Device Manager</strong>, follow these steps:</p>
<ul>
<li>First, invoke the “Run” box. One way to do this is to press <strong>Windows key + R</strong>.</li>
<li>Enter the following command into the “Run” box: <strong>devmgmt.msc</strong>. Then press the <strong>OK</strong> button.</li>
<li>Within the tree structure presented in the <strong>Device Manager</strong> dialog box, expand the <strong>Universal Serial Bus controllers</strong> node<strong>.</strong></li>
<li>From the expanded list of nodes, select the node marked “Unknown USB Device (Device Descriptor Request Failed)”</li>
<li>Right click this node and select <strong>Uninstall device</strong> from the context menu presented to you.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-237.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Once the uninstall operation has completed, reboot your computer. This will result in the driver being reinstalled which may also result in your issue being fixed.</li>
</ul>
<h2 id="heading-disable-fast-startup">Disable Fast Startup</h2>
<p>One possible cause of the “Device Descriptor Request Failed” issue could be from a feature in Windows designed to speed up the boot process of your computer. Sometimes, this “Fast Startup" feature can keep your Operating System from detecting USB devices. </p>
<p>Luckily we have the ability to turn this feature off. The “Fast Startup” feature is a “nice to have” feature and is it is recommended to have this feather turned on, but it is not an essential feature. </p>
<p>So to turn off the feature, follow these steps:</p>
<ul>
<li>Press Windows Key + R to invoke the “Run” box.</li>
<li>In the “Run” box type “control” and click the “OK” button to open Control Panel</li>
<li>In the search box of your Control Panel type “Power options” and then click “Change what the power buttons do”</li>
<li>Under the heading, “Define power buttons and turn on password protection”, click the link labelled, “Change settings that are currently unavailable”</li>
<li>Make sure that the “Turn on fast startup (recommended)” checkbox is unchecked. Click the “Save changes” button</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-238.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Restart your computer and see if this possible solution has fixed your USB device issue.</li>
</ul>
<h2 id="heading-disable-the-usb-selective-suspend-setting">Disable the USB Selective Suspend Setting</h2>
<p>Sometimes the USB port is put into low-power mode when the “USB selective suspend” setting is enabled. This can cause abnormal behaviour when connecting a device to a USB port, which can result in the “Device Descriptor Request Failed” issue occurring. </p>
<p>We are able to safely disable this feature, and by doing so potentially solve the “Device Descriptor Request Failed” issue. </p>
<p>To disable the “USB selective suspend” setting, follow these steps.</p>
<ul>
<li>Press Windows Key + R to invoke the “Run” box.</li>
<li>In the “Run” box, type “control” and click the “OK” button to open Control Panel</li>
<li>In your Control Panel find and click “Power Options”</li>
<li>Click the “Change plan settings” link</li>
<li>Click the “Change advanced power settings” link</li>
<li>Find and expand the “USB settings” node in the tree structure found on the "Advanced settings" tab.</li>
<li>Expand the “USB selective suspend setting” child node.</li>
<li>Make sure that “Disabled” is selected in the relevant dropdown list for both ”On battery” and “Plugged in”.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-239.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Click the “Ok” button</li>
<li>Reboot your computer</li>
<li>Once your computer has been rebooted, test to see if the “Device Descriptor Request Failed” issue has been resolved.</li>
</ul>
<h2 id="heading-remove-usb-device-and-scan-for-hardware-changes">Remove USB Device and Scan for Hardware Changes</h2>
<ul>
<li>Launch <strong>Device Manager</strong> by pressing Windows Key + R to launch the “Run” box, then type  <strong>devmgmt.msc</strong> in the "Run" box and press the “OK” button.</li>
<li>Unplug the problematic device from the relevant USB port.</li>
<li>From within the <strong>Device Manager</strong> dialog, click the “Scan for hardware changes” button on the toolbar. You can identify the relevant button by hovering your mouse pointer over the button whereby its tooltip text will display the text “Scan for hardware changes”.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-240.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>When the system recognises hardware changes, plug in the relevant USB device and test whether the problem has been fixed</li>
</ul>
<h2 id="heading-update-windows">Update Windows</h2>
<p>Installing the latest update for Windows may fix the “Device Descriptor Request Failed” issue. To install the latest windows update you can follow these steps:</p>
<ul>
<li>Open the Settings App by pressing Windows key + I</li>
<li>Click the "Update &amp; Security" option</li>
<li>Select the “Windows Update” option</li>
<li>Click the “Check for updates” button</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/10/image-241.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Restart Computer and test to see if the “Device Descriptor Request Failed” issue still occurs (change)</li>
</ul>
<h2 id="heading-conclusion">Conclusion</h2>
<p>The “Device Descriptor Request Failed” issue can cause a lot of frustration and even heart ache in my poor mother's case where it prevented her from viewing family photos. </p>
<p>Don’t despair – hopefully this article provides you with an effective remedy for the issue.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ DNS Server Not Responding – How to Fix the Error in Windows 10 ]]>
                </title>
                <description>
                    <![CDATA[ I think it's safe to say that the vast majority of professionals depend on the internet these days.  So being denied access to the internet when you are trying to mine nuggets of valuable information from your go-to web sites can be quite an ordeal. ... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-fix-dns-server-not-responding-error-windows-10/</link>
                <guid isPermaLink="false">66b0c5886e47f92ed2d0bf25</guid>
                
                    <category>
                        <![CDATA[ dns ]]>
                    </category>
                
                    <category>
                        <![CDATA[ error ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Gavin Lon ]]>
                </dc:creator>
                <pubDate>Fri, 30 Sep 2022 15:00:47 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/09/DNS-Issue-Main-Pic---pexels-yan-krukov-4458420.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>I think it's safe to say that the vast majority of professionals depend on the internet these days. </p>
<p>So being denied access to the internet when you are trying to mine nuggets of valuable information from your go-to web sites can be quite an ordeal. Especially when you are under pressure to complete a piece of urgently required work. </p>
<p>One particularly unwelcome cause of being denied access to the internet is the “DNS Server Not Responding” error. It’s like that old fable where a troll sits under a bridge and says “You shall not pass!”, or something about gobbling up those that wish to cross the bridge. </p>
<p>I’m happy to tell you that you should be able to defeat the troll and cross the bridge to internet access joy by following the simple trouble shooting steps discussed in this article.</p>
<h2 id="heading-what-is-the-dns-server-not-responding-error">What is the "DNS Server Not Responding" Error?</h2>
<p>The “DNS Server Not Responding” error is a fairly common issue and is generally easy to fix. There are many reasons why this issue may occur. But fundamentally it is caused because the DNS server that is contacted during the processes of loading a web page is unable to find the site that contains the web page that you have requested. </p>
<p>This article explores what may have triggered this issue to occur and how you may go about fixing the issue.</p>
<p>Firstly, I think it is a good idea to gain at least a basic understanding of the “DNS Server Not Responding” error. To do this, let’s first understand DNS. </p>
<p>DNS stands for Domain Name System. A simple explanation of DNS is that it is a decentralised storage of human readable internet addresses, like the ones with which you will almost certainly be familiar (for example www.amazon.com or www.netlix.com). </p>
<p>The DNS maps these human readable URLs to their appropriate IP (Internet Protocol) addresses. </p>
<p>IP addresses are much less human readable, but are essential for the inner workings of the internet. IP addresses uniquely identify computers on the internet. The IP address associated with the URL, www.netflix.com, might for example, look like this, 69.53.224.255. </p>
<p>It is clearly easier for you to remember “<a target="_blank" href="http://www.netflix.com">www.netflix.com</a>", rather than a string of numbers delimited by full stops, when you wish to access your favourite content on Netflix. So the DNS facilitates this for you, so that you don’t have to remember or manually lookup unfriendly strings of numeric data every time you wish to access a web site. </p>
<p>The common analogy to explain DSN is a telephone directory. Basically, as you would look up a telephone number using the name of the person you wish to call in a telephone directory, a similar look up is performed when you type in the URL (like www.amazon.com) of the web site you wish to view within your browser.</p>
<p>Thankfully you don’t have to manually look up the corresponding IP address for www.amazon.com, as this is performed behind the scenes for you automatically. </p>
<p>So the appropriate IP address is retrieved automatically every time you type in a URL into your browser. This IP address is then used to contact the appropriate server that hosts the relevant web site associated with the URL you have entered into your browser.</p>
<p>When the “DNS Server Not Responding” error occurs, this means that the decentralised naming systems responsible for automatically looking up the appropriate IP address based on the relevant hostname that you entered into you browser fails to respond. </p>
<p>There are many reasons why this error occurs, but fortunately there are also many solutions available to you to fix the issue. </p>
<p>An easy solution may be to simply change the web browser you are using or even simpler still, simply restart your computer. Yup, simply turning it off and then turning it on again could fix the issue. </p>
<p>However, if you are not so lucky and the problem still persists, don’t despair – there are many steps that you can take to find out the cause of the issue and subsequently fix it. </p>
<p>In this article you will learn a number of possible solutions to the “DNS Server Not Responding” error.</p>
<h2 id="heading-how-to-fix-dns-serger-not-responding">How to Fix "DNS Serger Not Responding"</h2>
<p>Below, I've listed out the ways that you can try using to fix the “DNS Server Not Responding” error. The subsequent sections of this article provide details on each of these methods:</p>
<ul>
<li>Use a Different Web Browser</li>
<li>Try Accessing a Web Site with a Different Device</li>
<li>Restart your Router</li>
<li>Investigate Possible Network Issues</li>
<li>Manually Set your DNS Server</li>
<li>Clear the DNS Cache</li>
<li>Disable Internet Protocol Version 6</li>
<li>Temporarily Deactivate your Firewall and Disable your Antivirus Software</li>
<li>Reset your DNS Settings</li>
<li>Update the Network Adapter Driver</li>
<li>Disable all Network Connections Except the Connection you are Using to Access the Internet</li>
<li>Restart your Computer in Safe Mode</li>
</ul>
<h3 id="heading-use-a-different-web-browser">Use a Different Web Browser</h3>
<p>A potential solution to the “DNS Server not Responding” issue that's really simple is to try accessing the relevant website using a different browser. </p>
<p>If, for example, you are using Microsoft Edge or Mozilla Firefox as your browser at the time that the issue occurs, try using a different browser like Google Chrome to access the relevant website.</p>
<p>If using a different browser solves the problem, then make the browser that works your default browser. But if the issue still persists, then we at least know that the browser you have been using is not the source of the issue and our investigation into finding a solution to the DNS Server not Responding” issue must continue…</p>
<h3 id="heading-try-accessing-a-website-with-a-different-device">Try Accessing a Website With a Different Device</h3>
<p>Try to use a different device connected to your home network to access the website you were trying to access when you received the error. </p>
<p>For example, use Wi-Fi from your mobile phone to access the relevant web site. If the issue persists, you know that the issue isn’t just with your primary device and the problem may have something to do with your router.</p>
<h3 id="heading-restart-your-router">Restart Your Router</h3>
<p>The “DNS Server not Responding” issue may occur simply due to data traffic. It may be that simply restarting your router can fix this issue. </p>
<p>You can restart your router by pressing the power button on your router. You can then unplug your router's power cable. Wait for about 30 seconds then plug your router into the power outlet again and press the power button to restart it.</p>
<h3 id="heading-investigate-possible-network-issues">Investigate Possible Network Issues</h3>
<p>Running network diagnostics may point to network issues as the root cause of the issue. </p>
<p>Running Network Diagnostic is very simple on a Windows 10 OS. You can do this by following these steps:</p>
<ul>
<li>Open Control Panel. One way to do this is press the <strong>Windows Key + R</strong> to activate the “Run” box, then type “control” in the text box presented in the “Run” box and hit the enter key.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-443.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Select the <strong>Network and Internet</strong> option presented within the Control Panel window.</li>
<li>Click the <strong>Network and Sharing Center</strong> option from within the “Network and Internet” window.</li>
<li>Click the <strong>Troubleshoot problems</strong> option presented under the "Change your network settings” heading within the “Network and Sharing Center” window.</li>
<li>Click <strong>Additional troubleshooters</strong> -&gt; <strong>Internet Connections</strong> -&gt; <strong>Run the troubleshooter</strong></li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-457.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>The next step is to wait for the troubleshooter task to finish. If you are presented with any error messages, simply follow the steps on how to fix the relevant network issue.</p>
<h3 id="heading-manually-set-your-dns-server">Manually Set Your DNS Server</h3>
<p>The source of your issue may be that your DNS server is down. In this case you’ll be pleased to know that you are able to manually change your DNS server. </p>
<p>You can change your DNS server to, for example, Googles Public DNS or CloudFlare’s public DNS. To change your DNS server, follow these steps:</p>
<ul>
<li>Invoke your Control Panel. One way to invoke your Control Panel is to activate your Start Menu and search for the Control Panel.</li>
<li>In the Control Panel window click the <strong>Network and Internet</strong> option.</li>
<li>In the <strong>Network and Internet</strong> window, click the <strong>Network and Sharing Center</strong> option.</li>
<li>On the  <strong>Network and Sharing Center</strong> window click on your active connection. For example, click the “ethernet” option if this is the connection currently being used or click the “Wi-Fi” option if it is clear that this is your active connection.</li>
<li>In the dialog box that is presented to you, click the “Properties” button.</li>
<li>In the dialog presented to you, you’ll see a list is presented under the “The connection uses the following items” heading.</li>
<li>In this list, select the list item labelled “Internet protocol version 4 (TCP/IPv4)” then click the “Properties” button.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-445.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>You will be presented with another dialog box where you’ll see two fields. One will be labelled “Preferred DNS Server”, and the other which is directly under this field will be labelled “Alternate DNS Server”.</li>
<li>First click the <strong>Use the following DNS server addresses</strong> radio button.</li>
<li>To use Googles Public DNS server, enter 8.8.8.8 in the field labelled “Preferred DNS Server” and enter 8.8.4.4 into the field labelled “Alternate DNS Server”.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-446.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>You are also able to use CloudFlare’s DNS server for the same purpose. CloudFlare’s DNS address is simply 1.1.1.1</li>
<li>Once you have entered your desired DNS server settings, ensure that the “Validate settings upon exit” checkbox is checked.</li>
<li>Click the “OK” button to save your new DNS server settings.</li>
<li>Restart your computer.</li>
</ul>
<h3 id="heading-clear-the-dns-cache">Clear the DNS Cache</h3>
<p>You are able to flush the DNS cache which may resolve the “DNS Server not Responding” issue. This action will clear IP addresses and other DNS related data from  your cache.</p>
<p>You can clear the DNS cache by running a command using your command prompt.</p>
<p>One way to invoke the command prompt is to press <strong>Window Key + R</strong> to invoke the “Run” box. Type “cmd” within the “Run” box and press <strong>shift+ctrl+enter</strong> to run the command prompt as an administrator.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-458.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>At the command prompt, type in the following command: “ipconfig /flushdns” and them press the enter key. If the command has executed successfully, you'll see the appropriate message in the command window.</p>
<h3 id="heading-disable-internet-protocol-version-6">Disable Internet Protocol Version 6</h3>
<p>At the time of writing this article, Internet Protocol Version 6 is the latest version of the internet protocol. Disabling the Internet Protocol Version 6 will not have detrimental effects on your computer’s operations, but it's been known to fix the “DNS Server not Responding” issue.</p>
<p>To disable the Internet Protocol version 6 on a Windows 10 operating system, just follow these steps:</p>
<ul>
<li>Go to <strong>Control Panel</strong> -&gt; <strong>Network and Internet</strong> -&gt; <strong>Network and Sharing Center</strong></li>
<li>Click on the relevant connection, for example “Wi-Fi”</li>
<li>Click the “Properties” button on the dialog that is presented to you.</li>
<li>In the list presented under the “This connection uses the following items” heading, uncheck the item labelled “Internet Protocol Version 6 (TCP/IPv6)”.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-448.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Press the “OK button”</li>
</ul>
<h3 id="heading-temporarily-deactivate-your-firewall-and-disable-antivirus">Temporarily Deactivate your Firewall and Disable Antivirus</h3>
<p>If your firewall is Defender, you can follow these steps to disable it:</p>
<ul>
<li>To open control panel, press <strong>Windows Key + R</strong> to activate the “Run” box, then type “control” in the text box presented in the “Run” box and hit the enter key.</li>
<li>In the top right hand text box, type in “win”</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-459.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>An option labelled "Windows Defender Firewall” should appear in the search results. Click the “Windows Defender Firewall” option.</li>
<li>Click the “Allow an app or feature through Windows Defender Firewall” option.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-462.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Click the “Change settings” button.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-461.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>From the list presented to you within the dialog box that has just been invoked, find the browser that you are using, for example Google Chrome. Then make sure that both the private and public checkboxes next to the relevant item are checked.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-466.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>Once you've done this, try to access the relevant website using the relevant browser and see if the issue has been fixed.</li>
</ul>
<p>There is a chance that your firewall was preventing you from accessing external data through your browser. </p>
<p>Note that it is not recommended to leave your operating system unprotected by reliable antivirus software indefinitely. Disabling your antivirus software in this instance is only recommended for testing if the relevant antivirus software is the cause of the “DNS Server not Responding” issue. </p>
<p>To temporarily turn off Microsoft Defender antivirus protection, follow these steps:</p>
<ul>
<li>Select Start and then type in "Windows Security” in order to search for the relevant application.</li>
<li>Select <strong>Windows Security App</strong> from the search results.</li>
<li>Go to <strong>Virus &amp; Threat Protection</strong>.</li>
<li>Under <strong>Virus &amp; threat protection settings</strong> select <strong>Manage settings.</strong></li>
<li>Switch <strong>Real-time protection</strong> off.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-467.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Attempt to access the relevant website through the relevant browser to test if the “DNS Server not Responding” issue still occurs.</p>
<h3 id="heading-reset-dns-settings">Reset DNS Settings</h3>
<p>To reset your DNS Settings, follow these steps:</p>
<ul>
<li>Run the command prompt as an administrator. To do this activate the “Run” box by pressing <strong>Windows key + R</strong>.</li>
<li>In the run box type “cmd” and press <strong>shift + ctrl + enter</strong></li>
<li>Type the following commands in the command prompt. After entering each command press the enter key, so that each command is run individually.</li>
</ul>
<p><code>ipconfig /registerdns</code></p>
<p><code>ipconfig /release</code></p>
<p><code>Ipconfig /renew</code></p>
<p><code>netsh winsock reset</code></p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-465.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Once you have run these commands, close the command prompt and restart your computer.</p>
<h3 id="heading-update-the-network-adapter-driver">Update the Network Adapter Driver</h3>
<p>You can manually update your network adapter driver, but it is much easier to automate this task. </p>
<p>You can automate this through the use of free software like “Driver Easy” (https://www.drivereasy.com/download-free-version/). Simply download the free version of this software. </p>
<p>Make sure that before you run the free version of the Driver Easy software that you create a system restore point. This provides you with insurance, so in the unlikely event that you encounter a nasty surprise that adversely effects your computer, that you are able to return your Windows OS back to the state that it was in before you ran the Driver Easy software and encountered an unexpected issue.</p>
<p>To use the Driver Easy software, follow these steps:</p>
<ul>
<li>Run the software</li>
<li>Click the “Scan Now” button</li>
<li>Press the “Update” button next to any outdated drivers.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-455.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-disable-all-network-connections-except-for-the-connection-that-you-are-using">Disable all Network Connections Except for the Connection that you are Using</h3>
<p>Disabling the additional network connections you may have setup on your computer (other than, for example, the Wi-Fi connection that you are using to access the internet) might fix the “DNS Server not Responding” issue. </p>
<p>To disable the relevant network connection, follow these steps:</p>
<ul>
<li>Firstly you must access your Network Connections. To access your Network Connections, press <strong>Windows Key + R</strong> to invoke the “Run” box</li>
<li>In the “Run” box type in “ncpa.cpl” and press enter.</li>
<li>Right click the relevant network connection and select “Disable” from the relevant context menu. Repeat this action until all connections except for the Wi-Fi connection you are using are disabled.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-456.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-restart-your-computer-in-safe-mode">Restart your Computer in Safe Mode</h3>
<p>When you start your computer in Safe Mode, this means the Windows operating system loads with a limited set of drivers and files. This can help you diagnose what is causing your “DNS Server not Responding” issue through a process of illumination (as it were). </p>
<p>So to start your PC in Safe Mode, follow these steps:</p>
<ul>
<li>Press the <strong>Windows Key + I</strong> to open Settings.</li>
<li>Select <strong>Update &amp; Security</strong> -&gt; <strong>Recovery</strong></li>
<li>Under <strong>Advanced startup</strong>, select <strong>Restart Now</strong></li>
<li>Once your PC has startup to the “Choose an option” screen, select <strong>Troubleshoot</strong> -&gt;  <strong>Advanced options</strong> -&gt; <strong>Startup Settings</strong> -&gt; <strong>Restart</strong></li>
<li>Once your PC has restarted you’ll see a list of options</li>
<li>Select <strong>5</strong> or press <strong>F5</strong> for Safe Mode with Networking.</li>
</ul>
<p>Try to access the web site that resulted in you getting the “DNS Server not Responding” issue. If the problem does not occur in safe mode this means that additional software may be the cause of the issue. </p>
<p>You can uninstall any additional software from your PC, one by one, and then test to see if the issue still occurs. If the issue does not occur after uninstalling particular software, this means that it is likely that this software was interfering with your internet access.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>The “DNS Server not Responding” issue is relatively common and thankfully it is also relatively easy to fix. </p>
<p>It can be incredibly inconvenient to be denied access to the internet but hopefully the potential solutions outlined in this article will help you to once again have access to your favorite web sites.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Generic PNP Monitor – How to Fix Windows 10 PC Device Driver ]]>
                </title>
                <description>
                    <![CDATA[ Have you acquired a new monitor only to find out it's not displaying anything from your computer? Or maybe the monitor suddenly stops working?  On many occasions, this problem is caused by a faulty generic PNP monitor driver. Apart from driver issues... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/generic-pnp-monitor-how-to-fix-windows-10-pc-device-driver/</link>
                <guid isPermaLink="false">66adf0db6f5e63db3fc43607</guid>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Wed, 21 Sep 2022 16:18:08 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/09/monitor-1307227_1280.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Have you acquired a new monitor only to find out it's not displaying anything from your computer? Or maybe the monitor suddenly stops working? </p>
<p>On many occasions, this problem is caused by a faulty generic PNP monitor driver.</p>
<p>Apart from driver issues, the monitor might not be working due to an improper connection associated with cables. IT could also happen because the monitor is faulty.</p>
<p>In response to this error, most monitors would show “No signal” or “Check connection cable”. That gives you a clue as to the first thing you should do – check the connection cables.</p>
<h2 id="heading-how-to-fix-generic-pnp-monitor-issues-on-windows-10">How to Fix Generic PNP Monitor Issues on Windows 10</h2>
<h3 id="heading-make-sure-all-cables-are-properly-connected">Make sure all cables are properly connected</h3>
<p>First, make sure all cables are connected properly. If you’re using a VGA or HDMI, or display port cable, look at the connection ports for the cables on both the monitor and computer and make sure they are not loose.</p>
<p>If you are sure the cables are connected the right way and the monitor still shows nothing, then you might need to switch cables. </p>
<p>If you were using HDMI at first, switch to VGA or display port. And if you were using a display port but the monitor still won’t show anything, then switch to VGA or HDMI.</p>
<h3 id="heading-how-to-fix-generic-pnp-monitor-by-updating-drivers">How to Fix Generic PNP Monitor by Updating Drivers</h3>
<p>If your monitor is not working, then you should update your display adapter drivers and monitor drivers.</p>
<h4 id="heading-how-to-update-the-display-adapter-driver">How to Update the Display Adapter Driver</h4>
<p>To update the display adapter driver, head over to the device manager by right-clicking on Start and selecting device manager.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/devicemanager.jpg" alt="devicemanager" width="600" height="400" loading="lazy"></p>
<p>Expand Display adapters, right-click on the device you see (mostly “Intel(R) HD Graphics…”), and select “Update driver”.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/ss1-4.png" alt="ss1-4" width="600" height="400" loading="lazy"> </p>
<p>Select “Search automatically for drivers” so your computer can check the internet for the latest driver.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/ss2-4.png" alt="ss2-4" width="600" height="400" loading="lazy"> </p>
<p>If the driver is really not up to date, your computer will download an updated version of the driver and prompt you to install it.</p>
<h4 id="heading-how-to-update-the-generic-pnp-monitor-driver">How to Update the Generic PnP Monitor Driver</h4>
<p>Head over to Device driver again and expand Monitors. Right-click on Generic PnP Monitor” and select Update driver.</p>
<p>PnP means Plug and Play. It’s the driver your computer installs for a monitor it doesn’t recognize.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/ss3-4.png" alt="ss3-4" width="600" height="400" loading="lazy"> </p>
<p>Select “Search automatically for drivers”.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/ss2-4.png" alt="ss2-4" width="600" height="400" loading="lazy"></p>
<p>Your computer will prompt you to install the updated driver once it’s downloaded.</p>
<p>If you update the necessary drivers and the monitor fails to work, then it’s an issue with your cable connections. This time around, you might need to get an external adapter or external converter.</p>
<h3 id="heading-use-an-external-adapter-or-converter-with-your-connection-cables">Use an External Adapter or Converter with your Connection Cables</h3>
<p>If you try every possible cable and the monitor still doesn’t show anything, then it might mean your monitor won’t work unless you connect a <strong>display adapter</strong> to the part of the cable attached to your laptop or system unit.</p>
<p>In that case, there are several adapters you can use:</p>
<ul>
<li>VGA to HDMI</li>
<li>USB to HDMI</li>
<li>VGA to display port</li>
</ul>
<p>You can get the adapters from any tech store in your area or online.</p>
<p>On most occasions, VGA to HDMI or VGA to display port works. When I had the same issue, VGA to HDMI adapter was what worked for me. </p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/ss5-4.png" alt="ss5-4" width="600" height="400" loading="lazy"></p>
<h2 id="heading-final-thoughts">Final Thoughts</h2>
<p>I hope this article helps you fix any issue you have with your monitor. </p>
<p>Bear in mind that once you update the necessary drivers (Monitor driver and Display adapter driver) and the monitor still fails to display, then it's likely an issue with your connection cables.</p>
<p>Thank you for reading.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Kernel Security Check Failure – How to Restart the Kernel in Windows 10 ]]>
                </title>
                <description>
                    <![CDATA[ I’ve been a professional software engineer for many years, and I can testify that there are few things worse than getting the dreaded BSOD (Blue Screen of Death). Especially when you are about to write a piece of mind bending code at 2am to meet a lo... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/kernel-security-check-failure-how-to-restart-the-kernel-in-windows-10/</link>
                <guid isPermaLink="false">66b0c58a374aa69009200c24</guid>
                
                    <category>
                        <![CDATA[ Windows ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Gavin Lon ]]>
                </dc:creator>
                <pubDate>Wed, 14 Sep 2022 15:41:50 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/09/ScreenShot1_BSOD_Anger.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>I’ve been a professional software engineer for many years, and I can testify that there are few things worse than getting the dreaded BSOD (Blue Screen of Death). Especially when you are about to write a piece of mind bending code at 2am to meet a looming deadline. </p>
<p>That’s just my perspective as a software engineer, but let’s face it – using a computer these days is absolutely essential for most professionals. </p>
<p>The point is the blue screen of death is about as welcome as a pigeon on a chessboard at a world champion chess tournament under almost any circumstances.</p>
<h3 id="heading-what-youll-learn">What You'll Learn</h3>
<p>In this article, we are going to look at one particularly pernicious cause of the BDOS, the dreaded "Kernel Security Check Failure" issue. We'll also see how you can fix this, should you be faced with this abominable issue. </p>
<h2 id="heading-common-causes-for-the-bsod">Common Causes for the BSOD</h2>
<p>Common reasons you might get the "Kernel Security Check Failure" issue are corrupted system files, faulty hardware, or outdated drivers.</p>
<h3 id="heading-corrupted-system-files">Corrupted system files</h3>
<p>Malware is the most likely cause of corrupted system files. The nomenclature of ‘Malware’ is a contraction of the term ‘Malicious Software’. This is software deliberately designed to be intrusive and cause disruption when you're working on your computer. </p>
<p>You have probably heard of terms like virus, trojan horse virus, worms, spyware, ransom ware, and so on. These are all examples of malicious software, Malware.</p>
<h3 id="heading-faulty-hardware">Faulty hardware</h3>
<p>Faulty RAM (memory) or a corrupted or damaged hard disk drive could be the cause of the issue.</p>
<h3 id="heading-outdated-drivers">Outdated drivers</h3>
<p>Out of all the possible causes of this "Kernel Security Check Failure" issue, the most likely cause is outdated drivers. </p>
<p>The outdated drivers issue may have arisen from upgrading from an older version of Windows to Windows 10. The relevant driver may have worked perfectly on the older version of Windows but may be incompatible with Windows 10.</p>
<h2 id="heading-what-is-the-blue-screen-of-death">What is the Blue Screen of Death?</h2>
<p>Typically you become aware of the "Kernel Security Check Failure" issue during Windows startup. This is where Windows performs a check process. If, during this process, Windows detects corruption in any critical data structures, the Kernel_Security_check_failure error is thrown. </p>
<p>As you can see by the screenshot below there is very little detail about the error. Thankfully, the message does include a stop code (highlighted in yellow) to help identify why you're presented with the dreaded BSOD.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-347.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h2 id="heading-how-to-fix-the-kernel-security-check-failure-error">How to Fix the Kernel Security Check Failure Error</h2>
<p>Fortunately there are many potential fixes available to resolve the "Kernel Security Check Failure" issue.  </p>
<p>To solve the issue, you can go through an investigation process in order to pinpoint the cause of the issue. Once you have learned the cause of the issue, you'll know which of the fixes to apply. </p>
<p>But a quick fix which is the first item in the list of possible fixes provided in this article might be as simple as updating your system to the latest version of Windows 10. </p>
<p>You can see below a list of fixes discussed in this article. The subsequent sections contain step by step instructions for each potential fix in the list.</p>
<ul>
<li>Update to the Latest Released Version of Windows 10 </li>
<li>Update Drivers that Need to be Updated</li>
<li>Check for Viruses</li>
<li>Investigate Possible Corrupted Windows File System</li>
<li>Test to see if Disabling Antivirus Software Fixes the Issue</li>
<li>Investigate Possible Issues with RAM</li>
<li>Investigate Possible Hard Disk Drive Issues</li>
<li>Test to see if Disabling Antivirus Software Fixes the Issue</li>
<li>Start PC in Safe Mode</li>
</ul>
<h3 id="heading-update-to-the-latest-released-version-of-windows-10">Update to the Latest Released Version of Windows 10</h3>
<p>This maybe the easiest way to fix the issue. To update Windows 10 to the latest version of Windows, you can take the following steps:</p>
<ul>
<li>Click Windows key + I to invoke the Settings App.</li>
<li>Click the “Update &amp; Security” tile.</li>
<li>Click the “Check for Updates” button (status information will be presented on the screen regarding the download and installation progress)</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-348.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>After the update is complete, check to see if the BSOD still occurs.</li>
</ul>
<h3 id="heading-update-drivers-that-need-to-be-updated">Update Drivers that Need to be Updated</h3>
<p>One easy way to check for drivers with issues is by using Device Manager.</p>
<p>To invoke Device Manager, press the Windows key + X. In the dialog that will be presented to you, a tree structure is displayed.</p>
<p>If you expand all of the nodes in the tree structure it should be apparent as to which drivers need to be updated – you'll see an exclamation mark with a yellow background colour next to the nodes that represent the drivers that need to be updated.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-349.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>To update a driver, simply right click on the node that represents the relevant driver (that needs to be updated) and click the “Update driver” context menu item. </p>
<p>You'll then see two options: you can either select the option whereby Windows 10 will search for the driver automatically, or you can choose the manual option and search your computer for the relevant new driver file that may already exist on your computer.</p>
<p>The next step is to allow the driver installation update to complete.</p>
<p>You can then continue to check for other problematic drivers by inspecting Device Manager for nodes that contain exclamation marks with yellow backgrounds. If you find any more, you can update those drivers until all the problematic drivers have been appropriately updated.</p>
<p>Then you just need to restart your computer so that the changes created by the new drivers are completed. Hopefully this eliminates your BSOD issue.</p>
<p>If the issue still occurs, your investigation must continue…</p>
<h3 id="heading-check-for-viruses"><strong>Check for Viruses</strong></h3>
<p>You must ensure that you have installed the latest Windows updates on your PC and use the antivirus software to check for viruses. </p>
<p>If one or more viruses are found, take the necessary action to remove the virus or viruses from your computer.</p>
<h3 id="heading-investigate-possible-corrupted-windows-file-system">Investigate Possible Corrupted Windows File System</h3>
<p>You can use the System File checker (SFC) tool to fix corrupt system files. Below are the steps that you can follow in order to run the System File checker tool.</p>
<ul>
<li>From the desktop, use the Windows + R key to open the “Run” box</li>
<li>In the the “Run” box, type in “cmd” then press ctrl+shift+enter to launch the command prompt with administrative privileges.</li>
<li>Click the "Yes" button on the "User Account Control"ss (UAC) prompt</li>
<li>Type “SFC /scannow” in the command prompt window and press “Enter”.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-350.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>The System file checker utility will check the integrity of Windows system files and will perform appropriate repair operations if required.</p>
<p>Reboot your computer after the process is completed.</p>
<h3 id="heading-test-to-see-if-disabling-antivirus-software-fixes-the-issue">Test to see if Disabling Antivirus Software Fixes the Issue</h3>
<p>Antivirus software, even though well-intentioned, can inadvertently block non-harmful services and apps from running correctly. </p>
<p>This method will tell you (as it were) that your antivirus software may be the cause of your issue – but please be aware that it is not recommended that you run your computer without the protection of appropriate antivirus software.</p>
<p>To temporarily disable your antivirus software, you can simply invoke the task manager window. You can do this by pressing ctrl+shift+escape on your keyboard.</p>
<p>If task manager loads in compact mode, click the “More details” option. Then select the "Startup" tab at the top of the "Task Manager" Window.</p>
<p>Find the name representing your antivirus application and click the relevant list item.</p>
<p>Then click the disable button that will be present in the right hand corner of the Task Manager window.</p>
<p>Finally, restart computer and see if the BSOD still appears. </p>
<p>Again, remember that even if this fixes the issue, you shouldn't run your computer without antivirus software. So you'll likely need to look into alternatives for protection.</p>
<h3 id="heading-investigate-possible-issues-with-ram">Investigate Possible Issues with RAM</h3>
<p>To identify RAM (memory) issues you can invoke the built-in Windows 10 scanner. To do this click on the search magnifying glass icon in the taskbar or press the Windows Key + S.</p>
<p>Type "Memory Diagnostics" in the search text box and run the first option presented in the search results.</p>
<p>In the popup dialog box that is presented, select “Restart now and check for problems (recommended)” option to kick off the diagnostic process.</p>
<p>During the boot process the memory diagnostic process will attempt to identify possible errors and issues regarding RAM. If issues are found, they will be reported to you.</p>
<h3 id="heading-investigate-possible-hard-disk-drive-issues">Investigate Possible Hard Disk Drive Issues</h3>
<p>You can scan your hard disks for any inconsistencies and errors using the check disk tool.</p>
<p>To run the check disk tool, make sure that you are logged onto windows with an administrator account. Then follow these steps:</p>
<ul>
<li>At the desktop, click Windows Key + R to launch the “Run” box.</li>
<li>In the "Run" box, type in “cmd” then press ctrl+shift+enter to run the command prompt as administrator.</li>
<li>Click the "Yes" button on the "User Account Control" (UAC) prompt.</li>
<li>Type in “chkdsk c: /f” and press enter</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-351.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>The “/f” option will attempt to fix any found errors</p>
<p>You could also include the “/r” option and the  “/x” option with this command. The “/r” option will locate bad sectors and recover any readable information, while the “/x” option forces the disk drive (about to be checked) to dismount before the utility begins a scan.</p>
<h3 id="heading-start-pc-in-safe-mode">Start PC in Safe Mode</h3>
<p>You can start your PCs in safe mode so that Windows 10 is booted with minimal files and drivers. To boot up Windows 10 in safe mode, you can follow these steps:</p>
<ul>
<li>Press Windows Key + I to invoke the Settings App.</li>
<li>Under the "Update &amp; Security" heading, select the "Recovery" tab.</li>
<li>Under the "Advanced Startup" heading in the right pane, press the "Restart Now" button.</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/09/image-352.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>After the PC restarts to the “Choose an option<strong>”</strong> screen, select Troubleshoot &gt; Advanced options &gt; Startup Settings &gt; Restart.</li>
</ul>
<p>After the PC restarts, you are presented with a list of options. Select “4” or press “F4” to start PC in Safe Mode. Or if you need to use the internet, you can select <strong>“</strong>5<strong>”</strong> or press <strong>“</strong>F5<strong>”</strong> for Safe Mode with Networking. </p>
<p>If the issue does not occur in safe mode, this means that the default settings and basic device drivers aren't causing the issue. </p>
<p>Assuming the problem does not occur in safe mode, you now know that the issue must be caused by an additional driver or application that runs in normal mode.</p>
<p>Using a process of elimination, you can now focus on the relevant additional drivers and applications. You can systematically uninstall each of the relevant applications starting with the most recently installed ones and working your way from most recently installed to the least recently installed. </p>
<p>With each uninstall you can test for the problem. This will hopefully pinpoint the application or program that was the cause of the issue. Then you can uninstall the relevant software to hopefully get rid of the issue.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>In conclusion, the Kernel Security Check Failure issue can be a huge inconvenience. But hopefully the steps provided in this article will help you fix the issue.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ How to Dual Boot Windows 10 and Ubuntu – Linux Dual Booting Tutorial ]]>
                </title>
                <description>
                    <![CDATA[ You don’t have to have two different computers to use Linux and Windows 10. It's possible to have a Linux distro installed on a computer with Windows 10 preinstalled.  In this article, I will show you how to dual boot Windows 10 and the popular Ubunt... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-dual-boot-windows-10-and-ubuntu-linux-dual-booting-tutorial/</link>
                <guid isPermaLink="false">66adf117f452caf50fb1fdfb</guid>
                
                    <category>
                        <![CDATA[ Linux ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Wed, 24 Aug 2022 20:09:09 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/08/dualBoot--1-.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>You don’t have to have two different computers to use Linux and Windows 10. It's possible to have a Linux distro installed on a computer with Windows 10 preinstalled. </p>
<p>In this article, I will show you how to dual boot Windows 10 and the popular Ubuntu Linux distro. But before that, you have to install Ubuntu on your Windows 10 PC.</p>
<p>Before you go through this process, you must backup your files. That’s because installing an OS is a risky process. Sometimes it can overwrite the existing OS and delete all your files.</p>
<p><strong>N.B.</strong>: Most of the processes in this article take time to get done, so you need to be patient.</p>
<h2 id="heading-what-well-cover-a-step-by-step-guide-to-dual-booting-windows-10-and-linux">What We’ll Cover – A step-by-step Guide to Dual-Booting Windows 10 and Linux</h2>
<ul>
<li><a class="post-section-overview" href="#heading-prerequisites">Prerequisites</a> </li>
<li><a class="post-section-overview" href="#heading-how-to-partition-your-hard-drive-for-ubuntu">How to Partition your Hard Drive for Ubuntu</a></li>
<li><a class="post-section-overview" href="#heading-how-to-optimize-your-hard-drive-for-more-partition-space-optional">How to Optimize your Hard Drive for More Partition Space (Optional)</a></li>
<li><a class="post-section-overview" href="#heading-how-to-download-ubuntu-in-iso-image-format">How to Download Ubuntu in ISO Image Format</a></li>
<li><a class="post-section-overview" href="#heading-how-to-make-an-ubuntu-linux-bootable-usb-drive">How to Make an Ubuntu (Linux) Bootable USB Drive</a> </li>
<li><a class="post-section-overview" href="#heading-how-to-install-ubuntu-linux-distro-along-with-windows-10">How to Install Ubuntu Linux Distro along with Windows 10</a></li>
<li><a class="post-section-overview" href="#heading-now-you-can-dual-boot-ubuntu-and-windows-10">Now You Can Dual Boot Ubuntu and Windows 10</a></li>
<li><a class="post-section-overview" href="#heading-conclusion">Conclusion</a></li>
</ul>
<h2 id="heading-prerequisites">Prerequisites</h2>
<p>Most importantly, there are some things you must have in place if you want to use (and dual boot) Ubuntu and Windows 10 on the same PC:</p>
<ul>
<li>A computer preinstalled with Windows 10</li>
<li>A partitioned hard drive </li>
<li>A BIOS in UEFI mode (Unified Extensible Firmware Interface)</li>
<li>An empty USB drive of at least 4Gig for creating a bootable disk</li>
<li>An internet connection to download Ubuntu ISO image (the Linux distro) and Rufus (a bootable drive creation tool)</li>
</ul>
<h2 id="heading-how-to-check-if-your-pc-bios-is-in-uefi-mode">How to Check If Your PC BIOS is in UEFI Mode</h2>
<p>To check if your PC BIOS comes in UEFI mode, search for “system information” and hit <code>ENTER</code>.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss1-5.png" alt="ss1-5" width="600" height="400" loading="lazy"> </p>
<p>Look under BIOS mode to confirm that your PC BIOS mode comes as UEFI.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss2-5.png" alt="ss2-5" width="600" height="400" loading="lazy"></p>
<p>If your PC BIOS is not in UEFI mode, the two operating systems won’t see each other. You can learn more about the <a target="_blank" href="https://www.freecodecamp.org/news/uefi-vs-bios/">difference between these two modes here</a>.</p>
<h2 id="heading-how-to-partition-your-hard-drive-for-ubuntu">How to Partition your Hard Drive for Ubuntu</h2>
<p>You have to partition your hard drive because you must set aside at least 20Gig for Ubuntu to live in and boot from. </p>
<p><strong>To partition your hard drive, follow the steps below</strong>:</p>
<p><strong>Step 1</strong>: Right-click on Start and select “Disk Management”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss3-5.png" alt="ss3-5" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 2</strong>: Right-click on your C drive and select shrink volume.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss4-6.png" alt="ss4-6" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 3</strong>: Select at least (20000) 20Gig for Ubuntu and click “Shrink”. IT can take some time to complete, so be patient.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss5-6.png" alt="ss5-6" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 4</strong> (optional): You can go ahead and assign a letter to the new volume. Right-click on the unallocated space and select “New Simple Volume”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss6-5.png" alt="ss6-5" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 5</strong>: Follow the wizard and assign a letter to the drive, then follow the rest of it.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss7-4.png" alt="ss7-4" width="600" height="400" loading="lazy"> </p>
<p>After completing the wizard, the drive should be listed on your computer.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss8-4.png" alt="ss8-4" width="600" height="400" loading="lazy"> </p>
<p>Congrats! You’ve successfully partitioned your hard drive. </p>
<p><strong>N.B.</strong>: If you have a lot of free space in your hard drive but your PC still didn’t give you up to 20Gig partition space, then you need to optimize your PC’s hard drive. Proceed to the next section of this article to do that.</p>
<h2 id="heading-how-to-optimize-your-hard-drive-for-more-partition-space-optional">How to Optimize your Hard Drive for More Partition Space (Optional)</h2>
<p>The common purpose of hard disk optimization is to speed up your computer during boot time and make it run smoother. </p>
<p>At the same time, the process will defragment the hard disk and make free space more available for partitioning.</p>
<p>To optimize your hard drive, click Start (Windows logo key), search for “defrag” and select “Defragment and Optimize Drives”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss9-3.png" alt="ss9-3" width="600" height="400" loading="lazy"></p>
<p>Make sure your C drive is highlighted, then click “Optimize”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss10-3.png" alt="ss10-3" width="600" height="400" loading="lazy"> </p>
<p>After you’ve been able to set aside at least 20Gig for Ubuntu by partitioning your hard drive, then it’s time to download Ubuntu and make a bootable USB.</p>
<h2 id="heading-how-to-download-ubuntu-in-iso-image-format">How to Download Ubuntu in ISO Image Format</h2>
<p>The next thing is to download Ubuntu in ISO image format so you can install Ubuntu. You can download it from the Ubuntu distro website.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss11-3.png" alt="ss11-3" width="600" height="400" loading="lazy"> </p>
<p>After downloading Ubuntu, don’t do anything with it yet. You need to make a bootable USB and put it in there. That’s how you’ll be able to use it. </p>
<p>The reason you can’t install Ubuntu just like that is that it doesn’t come as an executable. It comes in form of ISO (optical disk image). That means you have to find a disk to put it in before it can work.</p>
<p>The next part of this guide shows how you can put the downloaded Ubuntu ISO on a USB stick.</p>
<h2 id="heading-how-to-make-an-ubuntu-linux-bootable-usb-drive">How to Make an Ubuntu (Linux) Bootable USB Drive</h2>
<p>You won’t be able to make a bootable USB drive for Ubuntu by just placing the downloaded ISO image in it. Follow these steps to get it done:</p>
<p><strong>Step 1</strong>: You need to download a bootable USB drive creation tool like Rufus. You can <a target="_blank" href="https://rufus.ie/en/">download Rufus from their website</a>.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss12-3.png" alt="ss12-3" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 2</strong>: Insert the empty USB drive into your Windows 10 PC. Right-click on Rufus and select “Open”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss13-1.png" alt="ss13-1" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 3</strong>: Under “Device”, select your USB drive. And under “Boot selection”, click the “Select” button and select the Ubuntu ISO file you downloaded </p>
<p><strong>Step 4</strong>: Leave every other thing as default and click the “START” button to start burning the Ubuntu distro to the drive.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss14-1.png" alt="ss14-1" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 5</strong>: Click OK to start the process.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss15-1.png" alt="ss15-1" width="600" height="400" loading="lazy"> 
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss16-1.png" alt="ss16-1" width="600" height="400" loading="lazy"></p>
<p>Once the process is done, you should see “READY” on a green background. Click the Close button. Its time to install Ubuntu.</p>
<p>Congrats! Now you have a bootable drive with which you can install Linux.</p>
<p>The next step is to install the Ubuntu distro on your Windows 10 PC. To do this, you have to boot your PC from the bootable USB drive you created.</p>
<h2 id="heading-how-to-install-ubuntu-linux-distro-along-with-windows-10">How to Install Ubuntu Linux Distro along with Windows 10</h2>
<p><strong>Step 1</strong>: Ensure the bootable drive is inserted into your Windows 10 PC</p>
<p><strong>Step 2</strong>: Right-click on Start, hold SHIFT, and select Restart.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss18-3.png" alt="ss18-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Select “Use a Device”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/1-use-a-device-1.jpg" alt="1-use-a-device-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: On the next screen, you should see several devices you can boot from. </p>
<p>You may see the bootable drive as the name of the USB brand. 
<img src="https://www.freecodecamp.org/news/content/images/2022/08/disk-1.jpg" alt="disk-1" width="600" height="400" loading="lazy"></p>
<p>It’s possible to see it as “Ubuntu” too. Some other times, you might not see it, so you need to click on “See more devices".</p>
<p>If you still cannot see your bootable drive, head over to your boot menu by getting into BIOS. You will see it there.</p>
<p><strong>N.B.</strong>: You should be very careful while making changes in BIOS. Whatever you do there has a lasting effect on your computer. If you are not sure of what you're doing there, you should contact an IT professional.</p>
<p><strong>Step 4</strong>: Choose "Install Ubuntu". You can also try it before installing it.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/3-select-install-ubuntu.jpg" alt="3-select-install-ubuntu" width="600" height="400" loading="lazy"></p>
<p>Follow other prompts of the installation wizard and make sure you don’t replace your Windows 10 OS installation with Ubuntu. This is why I suggested you back up all your files.</p>
<p>When you get to the point to select the partition you made, scroll to <a class="post-section-overview" href="#heading-how-to-partition-your-hard-drive-for-ubuntu">the partition you made earlier</a> and press <code>ENTER</code>.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/1-1-select-disk.jpg" alt="1-1-select-disk" width="600" height="400" loading="lazy"></p>
<p>Click OK to select all the space in the partition. 
<img src="https://www.freecodecamp.org/news/content/images/2022/08/1-2-select-disk.jpg" alt="1-2-select-disk" width="600" height="400" loading="lazy"></p>
<p>This time around, the “Install now” button will not be greyed out anymore. 
<img src="https://www.freecodecamp.org/news/content/images/2022/08/1-3-select-disk.jpg" alt="1-3-select-disk" width="600" height="400" loading="lazy"></p>
<p>Follow other prompts until Ubuntu starts installing.</p>
<p>After the installation is done, Ubuntu will prompt you to remove the bootable drive and press <code>ENTER</code> to reboot your Computer.</p>
<h2 id="heading-now-you-can-dual-boot-ubuntu-and-windows-10">Now You Can Dual Boot Ubuntu and Windows 10</h2>
<p>Immediately after you reboot the computer, you should see a screen that looks as shown below:
<img src="https://www.freecodecamp.org/news/content/images/2022/08/Snapchat-2063128211.jpg" alt="Snapchat-2063128211" width="600" height="400" loading="lazy"> </p>
<p>Now, you can select which one to boot into between Ubuntu and Windows 10. </p>
<p>To boot into Ubuntu, select Ubuntu. And to boot into Windows 10, select Windows boot manager.</p>
<p>You can also get into your BIOS from the same place by choosing UEFI Firmware Settings.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/Snapchat-778941832.jpg" alt="Snapchat-778941832" width="600" height="400" loading="lazy"> </p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>I hope this article helps you dual boot Ubuntu and Windows 10 on your computer.</p>
<p>The ultimate aim of this article was to show you how to dual boot Ubuntu and Windows 10. </p>
<p>But the article went beyond that to show you how to:</p>
<ul>
<li>check if your PC’s BIOS is in UEFI mode </li>
<li>partition your hard drive</li>
<li>optimize your hard drive</li>
<li>make a bootable USB drive </li>
<li>install Ubuntu Linux Distro along with Windows on your Windows 10 PC.</li>
</ul>
<p>If you find this article helpful, kindly share it with your friends and family.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Discord Update Failed – How to Fix the Error on a Windows 10 PC ]]>
                </title>
                <description>
                    <![CDATA[ Discord is a popular chat app for gamers and anyone else who wants to create an online community. Despite its popularity, one major problem users report about Discord is the update failed loop. Discord has to update often because the Discord team imp... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/discord-update-failed-how-to-fix-the-error-on-a-windows-10-pc/</link>
                <guid isPermaLink="false">66adf0b3febac312b73075a6</guid>
                
                    <category>
                        <![CDATA[ Chat ]]>
                    </category>
                
                    <category>
                        <![CDATA[ discord ]]>
                    </category>
                
                    <category>
                        <![CDATA[ update  ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Thu, 18 Aug 2022 15:31:45 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/08/discord--1-.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Discord is a popular chat app for gamers and anyone else who wants to create an online community. Despite its popularity, one major problem users report about Discord is the update failed loop.</p>
<p>Discord has to update often because the Discord team implements new features and bug fixes regularly. </p>
<p>In addition, the app itself must load new messages from chat rooms and DMs. Once the update fails, Discord gets stuck in an update failed loop.</p>
<p>In this guide, I will show you 4 ways you can fix the Discord update failed error on a Windows 10 computer.</p>
<h2 id="heading-what-well-cover">What We'll Cover</h2>
<ul>
<li><a class="post-section-overview" href="#heading-solution-1-double-check-your-internet-connection">Double-check your Internet Connection</a></li>
<li><a class="post-section-overview" href="#heading-solution-2-run-discord-as-an-administrator">Run Discord as an Administrator</a></li>
<li><a class="post-section-overview" href="#heading-solution-3-rename-discords-updateexe-file">Rename Discord’s Update.exe File</a></li>
<li><a class="post-section-overview" href="#heading-solution-4-temporarily-disable-your-antivirus-program-and-vpn">Temporarily Disable your Antivirus Program and VPN</a></li>
<li><a class="post-section-overview" href="#heading-solution-5-uninstall-and-reinstall-discord">Uninstall and Reinstall Discord</a></li>
<li><a class="post-section-overview" href="#heading-conclusion">Conclusion</a></li>
</ul>
<h2 id="heading-solution-1-double-check-your-internet-connection">Solution 1: Double-check your Internet Connection</h2>
<p>The first thing I would suggest you do is to check your internet connection.</p>
<p>That’s because Discord needs an internet connection to update, as the update has to be done over the internet. Once there’s no internet connection, the update won’t happen.</p>
<p>Make sure your Windows 10 PC is connected to the internet and the internet connection is strong enough.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss1-4.png" alt="ss1-4" width="600" height="400" loading="lazy">
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss2-4.png" alt="ss2-4" width="600" height="400" loading="lazy"> </p>
<h2 id="heading-solution-2-run-discord-as-an-administrator">Solution 2: Run Discord as an Administrator</h2>
<p>A common solution to this issue is to run the Discord app as an admin. </p>
<p>This could fix the issue because any app you want to install needs admin privileges. Discord is not an exception, so granting it admin privileges can make it dig deeper into the issue and resolve it.</p>
<p>To run Discord as administrator, search for Discord and select Run as Administrator on the right:
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss3-4.png" alt="ss3-4" width="600" height="400" loading="lazy"></p>
<h2 id="heading-solution-3-rename-discords-updateexe-file">Solution 3: Rename Discord’s Update.exe File</h2>
<p>There’s a separate executable for updating Discord. This is the update.exe file in the Discord folder. </p>
<p>Renaming this file can force Discord to download a fresh one and subsequently fix the issue for you.</p>
<p><strong>Follow these steps to rename Discord’s update.exe file</strong>
Press <code>WIN</code> (Windows logo key) + <code>R</code> on your keyboard and type in <code>%localappdata%</code>.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss4-5.png" alt="ss4-5" width="600" height="400" loading="lazy"></p>
<p>Look for the Discord folder and open it.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss5-5.png" alt="ss5-5" width="600" height="400" loading="lazy"></p>
<p>Right-click on the <code>Update.exe</code> file and select rename. Then rename it to something like “Updater.exe”. You must not change the extension.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss6-4.png" alt="ss6-4" width="600" height="400" loading="lazy"> </p>
<p>Open the app again and see if the problem gets fixed.</p>
<h2 id="heading-solution-4-temporarily-disable-your-antivirus-program-and-vpn">Solution 4: Temporarily Disable your Antivirus Program and VPN</h2>
<p>Antivirus programs and VPNs are known for interfering with the normal functioning of computers and internet connections. So if you have one or both of them on your PC, it might be stopping Discord from updating.</p>
<p>To disable your antivirus and VPN, open Task Manager, right-click on <code>WIN</code> (Windows logo key) and select Task Manager.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss7-3.png" alt="ss7-3" width="600" height="400" loading="lazy"></p>
<p>Under processes, right-click on Discord and select “End Task”.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss8-3.png" alt="ss8-3" width="600" height="400" loading="lazy"> </p>
<h2 id="heading-solution-5-uninstall-and-reinstall-discord">Solution 5: Uninstall and Reinstall Discord</h2>
<p>If the solutions already discussed fail to work for you, the last resort is to uninstall Discord and reinstall it.</p>
<p><strong>Step 1</strong>: Head over to Control Panel and select Uninstall a Program.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss9-2.png" alt="ss9-2" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 2</strong>: Look for Discord, right-click on it and select uninstall.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss10-2.png" alt="ss10-2" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 3</strong>: To completely remove Discord, press <code>WIN</code> + <code>R</code> on your keyboard, type <code>%localappdata%</code>, and click OK.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss4-5.png" alt="ss4-5" width="600" height="400" loading="lazy"></p>
<p><strong>Step 4</strong>: Right-click on the Discord folder and select Delete.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss11-2.png" alt="ss11-2" width="600" height="400" loading="lazy"> </p>
<p><strong>Step 4</strong>: <a target="_blank" href="https://discord.com/download">Download Discord</a> again and install it.
<img src="https://www.freecodecamp.org/news/content/images/2022/08/ss12-2.png" alt="ss12-2" width="600" height="400" loading="lazy"></p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>I hope the solutions discussed above help you get Discord to update so you can start using it again.</p>
<p>Thank you for reading.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ How to Force Delete a File – Windows Command Prompt cmd delete ]]>
                </title>
                <description>
                    <![CDATA[ On a Windows computer, you might want to delete files to free up disk space, or because you don't want the file(s) on your computer anymore. But sometimes, it seems impossible to delete a file for various reasons. These include the file being open in... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-force-delete-a-file-windows-command-prompt-cmd-delete/</link>
                <guid isPermaLink="false">66adf1207550d4f37c2019ac</guid>
                
                    <category>
                        <![CDATA[ command line ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Fri, 08 Apr 2022 07:11:26 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/04/trash-97586_1280.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>On a Windows computer, you might want to delete files to free up disk space, or because you don't want the file(s) on your computer anymore.</p>
<p>But sometimes, it seems impossible to delete a file for various reasons. These include the file being open in another program, lack of write access, a malware attack, a corrupt or out of space Recycle Bin, the file is a system file, and many others.</p>
<p>In this article, I will show you how to force delete a file with the command prompt so you can get rid of a stubborn, unwanted file.</p>
<h2 id="heading-how-to-force-delete-a-file-with-the-windows-command-prompt">How to Force Delete a File With the Windows Command Prompt</h2>
<p>The following steps will help you force delete a file with the <code>del</code> command.</p>
<p><strong>Step 1</strong>: Open the Command Prompt by clicking on Start (or by hitting the Windows logo key on your keyboard), searching for "cmd", then hitting <code>Enter</code>:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/openCMD.jpg" alt="openCMD" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Head over to the folder containing the file, click on the folder address bar, and copy the address:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/ss1.png" alt="ss1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: In the Command Prompt, type <code>del</code>, right-click to the paste in the folder address, and append the filename with its extension (<code>.html</code>, <code>.txt</code>, <code>.py</code>, and so on).</p>
<p>This will look similar to <code>del C:\Users\user\folder-name\filename.extension</code>:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/ss2.png" alt="ss2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 4</strong>: Hit <code>ENTER</code> to run the command. Then check the folder again and you shouldn't see the file anymore:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/ss3.png" alt="ss3" width="600" height="400" loading="lazy"></p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>The <code>del</code> command will delete a file even if it's open in another program, with the exception of Office programs like MS Word.</p>
<p>So if you still find it hard to force delete a file, make sure it's not open in another program, especially an Office program.</p>
<p>Thank you for reading.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ flushdns – How to Flush DNS with the Windows ipconfig /flushdns Command ]]>
                </title>
                <description>
                    <![CDATA[ You've probably noticed that, after visiting a website for the first time, the website loads much quicker the next time you visit. This is because your operating system, or browser in the case of Google Chrome, cache IP addresses and DNS (Domain Name... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/flushdns-how-to-flush-dns-with-the-windows-ipconfig-flushdns-command/</link>
                <guid isPermaLink="false">66adf0d76f5e63db3fc43605</guid>
                
                    <category>
                        <![CDATA[ dns ]]>
                    </category>
                
                    <category>
                        <![CDATA[ networking ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Thu, 07 Apr 2022 03:41:13 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/04/domain-names-1772240_1920.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>You've probably noticed that, after visiting a website for the first time, the website loads much quicker the next time you visit.</p>
<p>This is because your operating system, or browser in the case of Google Chrome, cache IP addresses and DNS (Domain Name System) information of any website you visit. The DNS cache contains:</p>
<ul>
<li>the website address or hostname, technically called the resource data (rdata)</li>
<li>the domain name of the website</li>
<li>record type (IPv4 or IPv6)</li>
<li>the validity of the cache or TTL (time to live)</li>
</ul>
<p>When the TTL expires, the cache will be cleared, and the DNS is flushed for you automatically. But there are times when you don't want to wait hours or days for the TTL to expire, and want to flush your DNS manually.</p>
<p>In this article, I'll go over why you should flush your DNS, and how to do that in Windows 10 and Chrome.</p>
<h2 id="heading-so-why-should-you-flush-or-clear-your-dns">So, Why Should You Flush (or Clear) Your DNS?</h2>
<p>Flushing your DNS has several advantages, such as:</p>
<ul>
<li>hiding your search behavior from data collectors who might show you ads based on your search history</li>
<li>requesting that an updated version of a website or web app is loaded. This can help resolve 404 issues if a website or web app was migrated to a new domain</li>
<li>preventing DNS cache poisoning – a security situation in which black hat hackers gain maliciously gain access to your DNS cache and alter them so you get redirected to a website where sensitive information might be collected from you</li>
</ul>
<h2 id="heading-how-to-flush-your-dns-on-windows">How to Flush Your DNS on Windows</h2>
<p>To flush your DNS records on Windows 10, follow the steps below:</p>
<p><strong>Step 1</strong>: Click on Start or hit the Windows <code>[logo]</code> key on your keyboard</p>
<p><strong>Step 2</strong>: Type "cmd", then select "Run as Administrator" on the right</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/cmd-admin.jpg" alt="cmd-admin" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Type in "ipconfig /flushdns" and hit <code>ENTER</code></p>
<p>You should get a response that the DNS cache has been flushed like the one below:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/flushDNS.png" alt="flushDNS" width="600" height="400" loading="lazy"></p>
<p>This means that your cache has been completely cleared, and fresh versions of any website you visit will be loaded.</p>
<h2 id="heading-how-to-clear-the-dns-cache-on-google-chrome">How to Clear the DNS Cache on Google Chrome</h2>
<p>Despite not being an operating system, Chrome keeps a DNS cache of its own to help personalize your browsing experience.</p>
<p>To flush Chrome's DNS, all you need to do is type <code>chrome://net-internals/#dns</code> in the address bar and hit <code>ENTER</code>. </p>
<p>Then click “Clear host cache”:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/04/flushChromeDNS.png" alt="flushChromeDNS" width="600" height="400" loading="lazy"></p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>As you’ve learned in this article, flushing your DNS gives you a lot of advantages that can make your internet experience safer. </p>
<p>Even though the cache gets cleared after the TTL expires, you should flush your DNS as often as possible so you can get these advantages.</p>
<p>Thank you for reading!</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ VGA No Signal – How to Fix a Monitor Connection on Windows 10 PC ]]>
                </title>
                <description>
                    <![CDATA[ Sometimes you might turn on your PC but your monitor displays "No Signal" on the screen. In this article, we will look at various solutions for solving this problem. How to Fix a Monitor Connection by Checking Hardware Connections Check to see if th... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/vga-no-signal-how-to-fix-a-monitor-connection-on-windows-10-pc/</link>
                <guid isPermaLink="false">66b0a37b7cd8dca6718a2262</guid>
                
                    <category>
                        <![CDATA[ how-to ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Ihechikara Abba ]]>
                </dc:creator>
                <pubDate>Fri, 18 Feb 2022 16:02:36 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/02/vga-no-signal.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Sometimes you might turn on your PC but your monitor displays "No Signal" on the screen. In this article, we will look at various solutions for solving this problem.</p>
<h2 id="heading-how-to-fix-a-monitor-connection-by-checking-hardware-connections">How to Fix a Monitor Connection by Checking Hardware Connections</h2>
<ul>
<li>Check to see if the VGA connector fits in perfectly to its port.</li>
<li>Make sure your VGA connector is not damaged. If possible, replace the connector.</li>
</ul>
<h2 id="heading-how-to-fix-a-monitor-connection-by-restarting-your-pc">How to Fix a Monitor Connection by Restarting your PC</h2>
<p>Before this step, make sure your PC has not gone into sleep mode or hibernated. If this happens, the monitor may assume the PC is off and will display "No Signal". </p>
<ul>
<li>Unplug power cable and VGA connector.</li>
<li>Wait for a few minutes minutes.</li>
<li>Plug power cable and VGA connector back in.</li>
<li>Reboot PC.</li>
</ul>
<h2 id="heading-how-to-fix-a-monitor-connection-by-updating-drivers">How to Fix a Monitor Connection by Updating Drivers</h2>
<h3 id="heading-step-1-open-device-manager"><strong>Step 1 - Open Device Manager</strong></h3>
<ul>
<li>Click on the search box in your taskbar.</li>
<li>Type "device manager".</li>
<li>Click on Device Manager from the search results.</li>
</ul>
<h3 id="heading-step-2-update-display-adapter"><strong>Step 2 - Update Display adapter</strong></h3>
<ul>
<li>Expand the Display adapters option in Device Manager.</li>
<li>Right click on your display adapter and click on "Update driver"</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/02/update-display-adapter.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>You will be asked, "How do you want to search for drivers?" Choose the option that says "Search automatically for drivers".</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/02/how-do-you-want-to-search-for-drivers.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Wait for the driver to be updated, after which you can go to your display settings and see if the second monitor is being detected.</p>
<p>You may get a response that your drivers are already up to date. You can verify to see if your current version is the one on the driver provider's website. Here's how you can do that:</p>
<ul>
<li>Right click on display adapter just like we did before.</li>
<li>Click on <strong>properties</strong>.</li>
<li>Click on the <strong>Driver</strong> tab.</li>
<li>Copy the <strong>Driver Provider</strong> and <strong>Driver version</strong> values.</li>
<li>Search for the two values on Google.</li>
</ul>
<p>After following the steps above, you should find the website of your driver provider where you can install the latest version of the driver if yours isn't already up to date.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>In this article, we saw some of the useful steps required to fix a monitor connection in order to get rid of the "No Signal" message. </p>
<p>Thank you for reading!</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ What is Antimalware Service Executable? Why is it High CPU Disk Usage? ]]>
                </title>
                <description>
                    <![CDATA[ Antimalware service executable is a component of Windows Security that runs in the background. But sometimes antimalware service executable can impact Windows 10 computers negatively by using too much CPU. In this guide, I will show you what antimalw... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/what-is-antimalware-service-executable-why-is-it-high-cpu-disk-usage/</link>
                <guid isPermaLink="false">66adf2687550d4f37c2019d9</guid>
                
                    <category>
                        <![CDATA[ cpu ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Security ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Thu, 10 Feb 2022 17:31:27 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/02/cpu-4393376_1920.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Antimalware service executable is a component of Windows Security that runs in the background.</p>
<p>But sometimes antimalware service executable can impact Windows 10 computers negatively by using too much CPU.</p>
<p>In this guide, I will show you what antimalware service executable is, why it uses so much CPU, and how you can optimize your Windows 10 computer to make sure it doesn't use too much CPU.</p>
<h2 id="heading-what-is-antimalware-service-executable">What is Antimalware Service Executable?</h2>
<p>Antimalware service executable is a Windows Security process that executes real-time protection against malware.</p>
<p>Also known as msmpeng.exe, antimalware service executable runs in the background so it can scan files and programs from time to time.</p>
<p>When an antimalware service executable detects a virus or other malicious attacks, it deletes them or quarantines them.</p>
<h2 id="heading-why-does-antimalware-service-executable-use-a-lot-of-cpu">Why does Antimalware Service Executable use a lot of CPU?</h2>
<p>The main reason that antimalware service executable uses too much CPU is that it runs constantly in the background.</p>
<p>While running in the background, it actively scans programs and files and carries out the appropriate actions whenever it detects anything malicious.</p>
<p>In addition, the antimalware service executable uses too much CPU because it scans its own folder - <code>C:\Program Files\Windows Defender</code>.</p>
<p>So, stopping antimalware service executable from scanning its own folder is one of the ways you can make it use less CPU.</p>
<h2 id="heading-how-to-stop-antimalware-service-executable-from-using-too-much-cpu">How to Stop Antimalware Service Executable from using too Much CPU</h2>
<p>The 2 main ways you can stop antimalware service executable from using too much CPU is to reschedule Windows Security scans and prevent it from scanning its own folder.</p>
<p>Rescheduling scans won't make scans happen all the time, and preventing the executable from scanning its own folder will disable real-time protection.</p>
<h2 id="heading-solution-1-prevent-antimalware-service-executable-from-scanning-its-own-folder">Solution 1: Prevent Antimalware Service Executable from Scanning its Own Folder</h2>
<p><strong>Step 1</strong>: Press the WIN key on your keyboard and select the gear icon to open the Settings app.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/opensettings.jpg" alt="opensettings" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Click on “Update and Security” from the menu tiles.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-2-3.png" alt="ss-2-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Select “Windows Security”, then click on “Virus and threat protection”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-3-2.png" alt="ss-3-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 4</strong>: The Windows Security app will open up. Under “Virus &amp; threat protection settings”, click on the link that says “Manage Settings”. 
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-4-2.png" alt="ss-4-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 5</strong>: Scroll down to “Exclusions” and select the “Add or remove exclusions” link.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-5-2.png" alt="ss-5-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 6</strong>: On the next page, click on “Add an exclusion”, then select “Folder”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-6.png" alt="ss-6" width="600" height="400" loading="lazy"></p>
<p><strong>Step 7</strong>: Paste “<code>C:\Program Files\Windows Defender</code>” into the editor and click on “Select Folder”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-7.png" alt="ss-7" width="600" height="400" loading="lazy"></p>
<p><strong>Step 8</strong>: Immediately after you click on “Select Folder”, a massive modal will appear – make sure you click “Yes”. </p>
<p>The folder selected will now be added to exclusions and will not be scanned.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-8.png" alt="ss-8" width="600" height="400" loading="lazy"></p>
<h2 id="heading-solution-2-disable-realtime-protection-and-reschedule-scans">Solution 2: Disable Realtime Protection and Reschedule Scans</h2>
<p><strong>Step 1</strong>: Press <code>WIN + R</code> (Windows key then the letter R) to open the Run Dialogue.</p>
<p><strong>Step 2</strong>: Type “taskschd.msc” and click “OK”. This will open up the Task Scheduler app.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-9.png" alt="ss-9" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Expand the “Task Scheduler tab”, “Microsoft”, and “Windows”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-10.png" alt="ss-10" width="600" height="400" loading="lazy"></p>
<p><strong>Step 4</strong>: Scroll down and select “Windows Defender”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-11.png" alt="ss-11" width="600" height="400" loading="lazy"></p>
<p><strong>Step 5</strong>: Right-click on “Windows Defender Scheduled Scan” and select “Properties”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-12.png" alt="ss-12" width="600" height="400" loading="lazy"></p>
<p><strong>Step 6</strong>: Uncheck “Run with highest privileges” in the general tab.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-13.png" alt="ss-13" width="600" height="400" loading="lazy"></p>
<p><strong>Step 7</strong>: Go to the Conditions tab and uncheck everything there.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-14.png" alt="ss-14" width="600" height="400" loading="lazy"></p>
<p><strong>Step 8</strong>: Switch to the Triggers tab and click “New”.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-15.png" alt="ss-15" width="600" height="400" loading="lazy"></p>
<p><strong>Step 9</strong>: Schedule the time you want Windows Defender to run scans. Choose the frequency, date, and time, then click “OK”. Click “OK” again.
<img src="https://www.freecodecamp.org/news/content/images/2022/02/ss-16.png" alt="ss-16" width="600" height="400" loading="lazy"></p>
<p><strong>Step 10</strong>: Restart your computer. With this, the antimalware service executable should not eat up too many CPUs again.</p>
<h2 id="heading-final-thoughts">Final Thoughts</h2>
<p>The protection offered by the antimalware service executable is undeniably relevant. This protection prevents malware attacks so you can feel safe while using your Windows 10 computer.</p>
<p>If you try to make antimalware service executable consume less CPU with the 2 methods explained in this article and there seems to be no progress, you should try to disable your Windows Security program permanently. </p>
<p>But make sure you get another antivirus program so your computer won't be at the mercy of attacks.</p>
<p>Thank you for reading.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Second Monitor Not Detected – Fixed for Windows 10 PC Laptop Dual Monitor Display ]]>
                </title>
                <description>
                    <![CDATA[ Sometimes your PC may not detect your second monitor. In this tutorial, you'll learn some steps you can take to solve this problem. Check for improper connection Before we do anything technical, make sure you crosscheck your connections first. Make s... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/second-monitor-not-detected-fixed-windows10/</link>
                <guid isPermaLink="false">66b0a35f3dc92ea6a5a091ed</guid>
                
                    <category>
                        <![CDATA[ beginners guide ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Ihechikara Abba ]]>
                </dc:creator>
                <pubDate>Mon, 31 Jan 2022 23:25:23 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/01/how-to-make-windows-10-detect-second-monitor.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Sometimes your PC may not detect your second monitor. In this tutorial, you'll learn some steps you can take to solve this problem.</p>
<h2 id="heading-check-for-improper-connection">Check for improper connection</h2>
<p>Before we do anything technical, make sure you crosscheck your connections first. Make sure that all the cables fit in firmly and are connected in the right order.</p>
<h2 id="heading-update-display-adapter">Update display adapter</h2>
<p>This is probably the best solution at getting your PC to recognize your second monitor. Here are the steps to follow:</p>
<h3 id="heading-step-1-open-device-manager"><strong>Step 1 - Open Device Manager</strong></h3>
<ul>
<li>Click on the search box in your taskbar.</li>
<li>Type "device manager".</li>
<li>Click on Device Manager from the search results to launch the app.</li>
</ul>
<h3 id="heading-step-2-update-display-adapter"><strong>Step 2 - Update Display adapter</strong></h3>
<ul>
<li>Expand the Display adapters option in Device Manager.</li>
<li>Right click on your display adapter and click on "Update driver"</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/update-display-adapter.png" alt="Image" width="600" height="400" loading="lazy"></p>
<ul>
<li>You will be asked, "How do you want to search for drivers?" Choose the option that says "Search automatically for drivers".</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/how-do-you-want-to-search-for-drivers.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>Wait for the driver to be updated, after which you can go to your display settings and see if the second monitor is being detected.</p>
<p>If you get a response that your driver is already up to date, then you'll have to do the update manually. You can do this using the steps below:</p>
<ul>
<li>Right click on display adapter just like we did before – but this time you have to click on <strong>properties</strong>.</li>
<li>Click on the <strong>Driver</strong> tab.</li>
<li>Copy the <strong>Driver Provider</strong> and <strong>Driver version</strong> values.</li>
<li>Search for the two values on Google.</li>
</ul>
<p>After you have done this, you should find the website of your driver provider where you can install the latest version of the driver. </p>
<p>Once you have installed the driver, check to see if your PC recognizes your second monitor.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>In this article, we saw some of the steps required to update your display adapter in order to make your second monitor visible. I hope this helps.</p>
<p>Thank you for reading!</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Transparent Taskbar – How to Make a Task Bar Transparent in Windows 10 PC ]]>
                </title>
                <description>
                    <![CDATA[ Making your Windows taskbar transparent is a pretty cool thing to do. It looks great, and it's one of the few ways you can personalize your taskbar. Some resources about this topic require you to install different software to accomplish it. But in th... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/transparent-taskbar-how-to-make-a-task-bar-transparent-in-windows-10-pc-2/</link>
                <guid isPermaLink="false">66b0a36c03036c3282dfd7db</guid>
                
                    <category>
                        <![CDATA[ how-to ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Ihechikara Abba ]]>
                </dc:creator>
                <pubDate>Wed, 26 Jan 2022 00:11:44 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/01/task-bar.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Making your Windows taskbar transparent is a pretty cool thing to do. It looks great, and it's one of the few ways you can personalize your taskbar.</p>
<p>Some resources about this topic require you to install different software to accomplish it. But in this tutorial we'll see how to make the taskbar completely transparent without any installations.</p>
<h2 id="heading-how-to-make-your-windows-taskbar-transparent">How to Make your Windows Taskbar Transparent</h2>
<h3 id="heading-step-1-use-the-run-command-to-open-the-registry-editor-program">Step 1 - Use the Run command to open the Registry Editor program</h3>
<p>The Run command allows you to open various programs on your PC by typing their name. The program we will be using is called Registry Editor.</p>
<p>To use the Run command, you can use the shortcut <strong>Win + R</strong> (Windows button + R) or you can <strong>right click</strong> on the Windows icon and click on "Run".</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/run-command.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-step-2-type-regedit"><strong>Step 2 - Type regedit</strong></h3>
<p>After clicking on Run, a window should pop up where you can type in the name of a program you would like to open. Type "regedit" and press OK. This will open the Registry Editor.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/regedit.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>After clicking OK, the window below should pop up:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/registry.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-step-3-navigate-through-folders"><strong>Step 3 - Navigate through folders</strong></h3>
<p>The first folder to expand is the <code>HKEY_CURRENT_USER</code> folder. Scroll down and expand the <code>SOFTWARE</code> folder. </p>
<p>After that, locate the <code>Microsoft</code> folder and expand it as well. Next, scroll all the way down and expand the <code>Windows</code> folder. </p>
<p>In the <code>Windows</code> folder, expand the <code>CurrentVersion</code> folder followed by expanding the <code>Explorer</code> folder. Lastly, click on the <code>Advanced</code> folder. </p>
<p>If you found the steps above confusing, then you can use this path as a guide:</p>
<pre><code>Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
</code></pre><p>Pasting the path above and hitting enter should automatically bring you to our current location.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/paths.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-step-4-create-a-new-file"><strong>Step 4 - Create a new file</strong></h3>
<p>Right click and hover above the "New" option.</p>
<p>Then click on <strong>DWORD (32-bit) Value</strong>:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/new.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>After clicking on <strong>DWORD (32-bit) Value</strong>, you will see a space where you are supposed to type in the new file. Name the file <code>TaskbarAcrylicOpacity</code>. After you have created the file, double click on it and set the <strong>value data</strong> input to 0 (zero) and click OK.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/value-data.png" alt="Image" width="600" height="400" loading="lazy"></p>
<h3 id="heading-step-5-enable-transparency-effects"><strong>Step 5 - Enable transparency effects</strong></h3>
<p>Go to Desktop and right click. Click on personalize.</p>
<p>Click on the "Colors" tab, and toggle Transparency effects to <strong><code>On</code></strong>:</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/personalize.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>After this, you should have a transparent taskbar. </p>
<p>If the last step does not work for you, then go on with next steps.</p>
<h3 id="heading-step-6-restart-windows-explorer-using-task-manager"><strong>Step 6 - Restart Windows Explorer using Task Manager</strong></h3>
<p>Before opening task manager, make sure that your File Explorer is already running. Then follow these steps: </p>
<ul>
<li>Right click on taskbar.</li>
<li>Click on Task Manager.</li>
<li>Right click on File Explorer under Apps.</li>
<li>Click on Restart</li>
</ul>
<p><img src="https://www.freecodecamp.org/news/content/images/2022/01/restart.png" alt="Image" width="600" height="400" loading="lazy"></p>
<p>After completing the last step, you should have a completely transparent taskbar.</p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>In this tutorial, we made our taskbar transparent without installing any software in Windows 10. I hope this works for you.</p>
<p>Thank you for reading!</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ An Administrator Has Blocked You From Running This App –  How to Fix on a Windows 10 PC ]]>
                </title>
                <description>
                    <![CDATA[ Sometimes when you decide to open an app or file or install or open a program on your Windows 10 PC, you might get the error "An administrator has blocked you from running this app".  You get this error because Windows 10 is optimized for protection ... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/an-administrator-has-blocked-you-from-running-this-app-how-to-fix-on-a-windows-10-pc/</link>
                <guid isPermaLink="false">66adf070f452caf50fb1fdd0</guid>
                
                    <category>
                        <![CDATA[ error ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Security ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Fri, 21 Jan 2022 15:51:17 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/01/dadminError.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Sometimes when you decide to open an app or file or install or open a program on your Windows 10 PC, you might get the error "An administrator has blocked you from running this app". </p>
<p>You get this error because Windows 10 is optimized for protection against malware through Windows Defender and User Account Control (UAC).</p>
<p>But at times, this protection is overly sensitive. So, on some occasions, the error occurs even when you're trying to run trusted apps or open trusted files.</p>
<p>Today is hopefully the last day you'll see this error pop up on your Windows 10 PC. Because in this article, I will show you 5 ways to fix it, so you can start using your computer without the fear of the error.</p>
<p><strong>PS</strong>: If you're getting this error while running a trusted app or trying to open a trusted file, the solutions provided in this article are for you. If you don't trust the app, use any of the solutions only if you're ready to take a risk.</p>
<h2 id="heading-table-of-contents">Table of Contents</h2>
<ul>
<li><a class="post-section-overview" href="#heading-solution-1-temporarily-disable-your-antivirus-program">Temporarily Disable Your Antivirus Program</a></li>
<li><a class="post-section-overview" href="#heading-solution-2-disable-the-windows-smartscreen-feature">Disable the Windows Smartscreen Feature</a></li>
<li><a class="post-section-overview" href="#heading-solution-3-unblock-the-file">Unblock the File</a></li>
<li><a class="post-section-overview" href="#heading-solution-4-run-the-app-with-the-command-prompt">Run the App with the Command Prompt</a></li>
<li><a class="post-section-overview" href="#heading-solution-5-make-changes-to-the-group-policy">Make Changes to the Group Policy</a></li>
<li><a class="post-section-overview" href="#heading-conclusion">Conclusion</a></li>
</ul>
<h2 id="heading-solution-1-temporarily-disable-your-antivirus-program">Solution 1: Temporarily Disable Your Antivirus Program</h2>
<p>If you get the "An administrator has blocked you from running this app" error, it could be because of your antivirus app. </p>
<p>So, disabling the antivirus app could provide a solution.</p>
<p>Whether you use the inbuilt Windows Defender or a third-party antivirus program, the steps below will help disable it.</p>
<p><strong>Step 1</strong>: Press <code>ALT</code> + <code>SHIFT</code> + <code>ESC</code> on your keyboard to open the Task Manager.</p>
<p><strong>Step 2</strong>: Switch to the Startup tab.</p>
<p><strong>Step 3</strong>: Locate your Antivirus Program in the list, right-click on it and select "Disable".
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-1-4.jpg" alt="ss-1-4" width="600" height="400" loading="lazy"></p>
<p><strong>PS</strong>: If you don't find your antivirus program in the startup tab, then check the Processes tab.</p>
<h2 id="heading-solution-2-disable-the-windows-smartscreen-feature">Solution 2: Disable the Windows Smartscreen Feature</h2>
<p>The Windows Smartscreen is an anti-malware feature that works with Windows Defender to block malware.</p>
<p>Sometimes, it triggers this error even when you're using a trusted app.</p>
<p>To disable Smartscreen, follow the steps below:</p>
<p><strong>Step 1</strong>: Press <code>WIN</code> + <code>S</code> on your keyboard and search for "smartscreen", then click on the "App &amp; Browser Control" search result.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-2-2.jpg" alt="ss-2-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Open the "Reputation-based protection settings" link.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-3-3.jpg" alt="ss-3-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Turn off the toggle under "Potentially unwanted app blocking".
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-4-3.jpg" alt="ss-4-3" width="600" height="400" loading="lazy"></p>
<h2 id="heading-solution-3-unblock-the-file">Solution 3: Unblock the File</h2>
<p>If you're getting the error while opening a file, this solution is for you.</p>
<p><strong>Step 1</strong>: Right-click on the file and select Properties.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-5-3.jpg" alt="ss-5-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: In the General tab, check "Unblock" under "Security".</p>
<p><strong>Step 3</strong>: Click Apply and then Ok.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-6-3.jpg" alt="ss-6-3" width="600" height="400" loading="lazy"></p>
<h2 id="heading-solution-4-run-the-app-with-the-command-prompt">Solution 4: Run the App with the Command Prompt</h2>
<p>Command prompt allows you to run an app and bypass the administrator check. </p>
<p>So you can avoid getting this error if you run the app triggering the error using the command prompt.</p>
<p>The following steps show you how to run any app with the command prompt:</p>
<p><strong>Step 1</strong>: Locate the app triggering the error, right-click on it and select Open file location.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-7-1.jpg" alt="ss-7-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Right-click on the file and select properties.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-8-3.jpg" alt="ss-8-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: In the General tab, copy the texts under location. Don't close the Properties window yet.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-9-1.png" alt="ss-9-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 4</strong>: Click on Start and search for "cmd", then select Run as Administrator on the right.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/cmd-admin-3.jpg" alt="cmd-admin-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 5</strong>: In the command prompt, paste the text you copied in step 3, then minimize the command prompt.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-10-2.png" alt="ss-10-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 5</strong>: Head back to the Properties opened in Step 1 and copy the file name.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-11-1.png" alt="ss-11-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 6</strong>: Maximize the Command Prompt, type "\" (slash) in front of the text you pasted in Step 4, and paste in the file name, as you can see in the screenshot below.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-12-1.png" alt="ss-12-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 7</strong>: Hit <code>ENTER</code> to finally launch the app.</p>
<h2 id="heading-solution-5-make-changes-to-the-group-policy">Solution 5: Make Changes to the Group Policy</h2>
<p>With the Group Policy, you can make changes you won't easily find anywhere else on your computer.</p>
<p>One of these changes can be made on the User Accounts Control (UAC) to allow apps to escape the administrator check.</p>
<p>To make the changes that will get rid of the error, follow the steps below:</p>
<p><strong>Step 1</strong>: Press <code>WIN</code> + <code>R</code> on your keyboard to open the Run dialogue.</p>
<p><strong>Step 2</strong>: In the run dialogue, type in "gpedit.msc" and hit <code>ENTER</code> on your keyboard.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-13-1.png" alt="ss-13-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Under Computer Configuration, expand Windows Settings, Security Settings, and Local Policies. </p>
<p><strong>Step 4</strong>: Click on Security Options. Don’t attempt to expand it, just click on it.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-14-1.jpg" alt="ss-14-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 5</strong>: Navigate to the bottom and double-click "User Account Control: Run all administrators in Admin Approval Mode".
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-15.jpg" alt="ss-15" width="600" height="400" loading="lazy"></p>
<p><strong>Step 6</strong>: Select Disable, click Apply, and then Ok.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-16.jpg" alt="ss-16" width="600" height="400" loading="lazy"></p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>This article showed you 5 different ways you can fix the "An administrator has blocked you from running this app" error. </p>
<p>This error message is only one of the 3 ways the error could come up.</p>
<p>If you're getting it in the form of "Your system administrator has blocked this program Group Policy, GPO, Regedit", then <a class="post-section-overview" href="#heading-solution-5-make-changes-to-the-group-policy">solution 5</a> is for you.</p>
<p>If you're getting it in the form of "Your system administrator has blocked this program uTorrent, Avast, AVG", then <a class="post-section-overview" href="#heading-solution-1-temporarily-disable-your-antivirus-program">solution 1</a> is for you.</p>
<p>In short, you'll just need to figure out the source of the error and then choose the solution that's right for your situation. </p>
<p>If you find this article helpful, consider sharing it with your friends and family.</p>
<p>Thank you for reading.</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ The Code Execution Cannot Proceed Because msvcp140.dll Was Not Found – How to Fix on a Windows 10 PC ]]>
                </title>
                <description>
                    <![CDATA[ msvcp140.dll is a Microsoft C Dynamic Linked Library file responsible for running certain Windows apps and games – especially those built on C++.  Sometimes, when you're trying to open an app or game, you might get the error “the code execution canno... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/how-to-fix-the-code-execution-cannot-proceed-because-msvcp140-dll-was-not-found/</link>
                <guid isPermaLink="false">66adf11ef452caf50fb1fdff</guid>
                
                    <category>
                        <![CDATA[ error handling ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Microsoft ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Windows 10 ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kolade Chris ]]>
                </dc:creator>
                <pubDate>Wed, 19 Jan 2022 17:47:26 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2022/01/msvcpdll-3.png" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>msvcp140.dll is a Microsoft C Dynamic Linked Library file responsible for running certain Windows apps and games – especially those built on C++. </p>
<p>Sometimes, when you're trying to open an app or game, you might get the error “the code execution cannot proceed because msvcp140.dll was not found”. </p>
<p>This error can come in another form, too – "The program can’t start because MSVCP140.dll was not found. Try reinstalling the program to fix this problem".</p>
<p>This could happen because the file is really missing, or it's available but corrupt. </p>
<p>You can scan your computer with Windows Defender or a third-party antivirus program, but this doesn’t always fix the error.</p>
<p>If you are getting this error while opening a game or app on your Windows 10 PC, you’ve come to the right place. Because in this article, I’m going to show you 3 ways you can fix the error and start using your app or playing your game once again.</p>
<h2 id="heading-solution-1-reinstall-the-app">Solution 1: Reinstall the App</h2>
<p>As suggested in the error message, reinstalling the program that's triggering the "msvcp140.dll was not found" error can fix the problem for you.</p>
<p>To reinstall an app, do the following:</p>
<p><strong>Step 1</strong>: Click on Start and select Settings.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/opensettings-2.jpg" alt="opensettings-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Select Apps from the menu tiles.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-1-3.jpg" alt="ss-1-3" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Click on the app causing the error and select Uninstall.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-.jpg" alt="ss-" width="600" height="400" loading="lazy"></p>
<p><strong>Step 4</strong>: Restart your computer, then reinstall the app by downloading it from the vendor’s website or Microsoft store.</p>
<h2 id="heading-solution-2-run-the-sfc-scan">Solution 2: Run the SFC Scan</h2>
<p>Since the error could be triggered by a corrupt file, the System File Checker scan can help fix it. When you run this program, it checks your computer files for corruption and fixes them.</p>
<p>To run the SFC scan, follow the steps below:</p>
<p><strong>Step 1</strong>: Click on Start and search for “cmd”. Click on Run as Administrator on the right, because you need to run the scan as an admin.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/cmd-admin-2.jpg" alt="cmd-admin-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: Paste in <code>sfc /scannow</code> and hit <code>ENTER</code>.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-2-1.png" alt="ss-2-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: When the scan is done, close the Command Prompt and restart your PC.</p>
<h2 id="heading-solution-3-install-microsoft-visual-c-redistributable">Solution 3: Install Microsoft Visual C++ Redistributable</h2>
<p>If any of the solutions above fail to work for you, then installing Microsoft Visual C++ redistributable package will fix it. </p>
<p>This is because <code>msvcp140.dll</code> and another DLL file called <code>vcruntime140.dll</code> are both constituents of the Microsoft Visual C++ package.</p>
<p>The following step by step guide shows you how to install Microsoft Visual C++ redistributable:</p>
<p><strong>Step 1</strong>: To download the file, go to the official Microsoft Visual C++ redistributable download page and click Download.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-3-2.png" alt="ss-3-2" width="600" height="400" loading="lazy"></p>
<p><strong>Step 2</strong>: On the next page, you will see the option to download the file for a 32-bit operating system and another for a 64-bit operating system. Select the one for your OS and click “Next”.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-4b-1.png" alt="ss-4b-1" width="600" height="400" loading="lazy"></p>
<p><strong>Step 3</strong>: Open the downloaded file and follow the installation Wizard to install it.
<img src="https://www.freecodecamp.org/news/content/images/2022/01/ss-5-2.png" alt="ss-5-2" width="600" height="400" loading="lazy"></p>
<p>If you have the Microsoft Visual Studio 2015 package installed already and you still get this error, you should uninstall and then reinstall the package.</p>
<p>I hope this guide helps you fix the error. </p>
<p>Thank you for reding.</p>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
