<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Enable Windows Defender Credential Guard via PowerShell - Cyber Security				            </title>
            <link>https://www.hacktheforum.com/cyber-security/enable-windows-defender-credential-guard-via-powershell/</link>
            <description>Hack The Forum Discussion Board</description>
            <language>en</language>
            <lastBuildDate>Sat, 18 Apr 2026 23:41:44 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Enable Windows Defender Credential Guard via PowerShell</title>
                        <link>https://www.hacktheforum.com/cyber-security/enable-windows-defender-credential-guard-via-powershell/#post-857</link>
                        <pubDate>Thu, 12 Dec 2024 19:39:27 +0000</pubDate>
                        <description><![CDATA[To enable Windows Defender Credential Guard via PowerShell, you need to ensure that your system meets the required prerequisites (such as Hyper-V and hardware virtualization support). Below ...]]></description>
                        <content:encoded><![CDATA[<p>To enable <strong>Windows Defender Credential Guard</strong> via <strong>PowerShell</strong>, you need to ensure that your system meets the required prerequisites (such as <strong>Hyper-V</strong> and <strong>hardware virtualization</strong> support). Below are the steps to enable Credential Guard using PowerShell:</p>
<h3>Step 1: Verify Prerequisites</h3>
<p>Before enabling Credential Guard, you need to ensure that your system meets the following prerequisites:</p>
<ul>
<li><strong>Windows 10 Enterprise</strong> or <strong>Windows Server 2016</strong> and later.</li>
<li><strong>Hardware Virtualization</strong> support (Intel VT-x or AMD-V) enabled in BIOS/UEFI.</li>
<li><strong>Hyper-V</strong> must be enabled on the system.</li>
<li><strong>TPM 2.0</strong> is recommended but not strictly required.</li>
<li><strong>UEFI firmware</strong> is required (BIOS-based systems will not work).</li>
</ul>
<p>You can check if your system supports virtualization by running the following command in PowerShell:</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">systeminfo | Select-String "Virtualization"
</pre>
</div>
</div>
<p>If virtualization is supported, you'll see an entry like <code>VM Monitor Mode Extensions: Yes</code> or <code>Hyper-V Requirements: Yes</code>.</p>
<h3>Step 2: Enable Hyper-V (if not already enabled)</h3>
<p>Credential Guard relies on <strong>Hyper-V</strong> to create a virtualized security environment. If <strong>Hyper-V</strong> is not already enabled, you can enable it using the following PowerShell command:</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All -All -NoRestart
</pre>
</div>
</div>
<p>This command enables all necessary <strong>Hyper-V</strong> features. Once executed, you should restart the system to apply the changes.</p>
<h3>Step 3: Enable Windows Defender Credential Guard via PowerShell</h3>
<p>Now, you can enable Credential Guard by modifying the registry settings. Run the following PowerShell commands as an <strong>Administrator</strong>:</p>
<ol>
<li><strong>Enable Virtualization-Based Security (VBS)</strong> and <strong>Credential Guard</strong>:</li>
</ol>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\DeviceGuard" -Name EnableVirtualizationBasedSecurity -Value 1
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\DeviceGuard" -Name RequirePlatformSecurityFeatures -Value 1
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\DeviceGuard" -Name LsaCfgFlags -Value 1
</pre>
</div>
</div>
<ol start="2">
<li><strong>Configure Credential Guard for UEFI Lock</strong> (optional but recommended for security):</li>
</ol>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\DeviceGuard" -Name EnableHypervisorEnforcedCodeIntegrity -Value 1
</pre>
</div>
</div>
<ol start="3">
<li><strong>Enable the Credential Guard setting</strong> for the system:</li>
</ol>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">Enable-WindowsOptionalFeature -Online -FeatureName DeviceGuard -All -NoRestart
</pre>
</div>
</div>
<p>This command ensures that <strong>Device Guard</strong> and <strong>Credential Guard</strong> are both enabled.</p>
<h3>Step 4: Reboot the System</h3>
<p>After applying the registry changes and enabling Hyper-V, you must restart the system for the settings to take effect.</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">Restart-Computer
</pre>
</div>
</div>
<h3>Step 5: Verify Credential Guard is Enabled</h3>
<p>After the system has rebooted, you can verify that <strong>Windows Defender Credential Guard</strong> is enabled using the following command:</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false">Get-WmiObject -Class Win32_ComputerSystem | Select-Object -Property Name, Domain, CredentialGuardEnabled
</pre>
</div>
</div>
<p>Alternatively, you can use <strong>System Information</strong> to verify:</p>
<ol>
<li>Press <strong><code>Win + R</code></strong> and type <code>msinfo32</code> to open <strong>System Information</strong>.</li>
<li>Look for the <strong>Device Guard</strong> section.
<ul>
<li>If <strong>Credential Guard</strong> is enabled, it will show <strong>Running</strong>.</li>
</ul>
</li>
</ol>
<h3>Additional Notes:</h3>
<ul>
<li><strong>Group Policy</strong> and <strong>Registry Changes</strong>: The steps above make the necessary registry changes to enable Credential Guard via PowerShell. These settings could also be managed through <strong>Group Policy</strong> in an Active Directory environment.</li>
<li><strong>Hyper-V</strong>: If you don’t want to enable <strong>Hyper-V</strong> on your system for other reasons, you cannot enable <strong>Credential Guard</strong>. It relies on the <strong>Hyper-V</strong> hypervisor to isolate credentials.</li>
</ul>
<p>By following these steps, <strong>Windows Defender Credential Guard</strong> will be enabled via PowerShell on your system, helping to protect sensitive authentication information from being extracted or manipulated by attackers.</p>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/cyber-security/">Cyber Security</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/cyber-security/enable-windows-defender-credential-guard-via-powershell/#post-857</guid>
                    </item>
							        </channel>
        </rss>
		