How to enable virtualization in BIOS Lenovo Windows 10

Blog

Thread starterSimilar threadsForumRepliesDate
D Solved! Lenovo Legion 5 left fan weird activity. Laptop Tech Support 1 Dec 25, 2021
How to enable virtualization in BIOS Lenovo Windows 10
Question Laptop fans more active after ram upgrade Laptop Tech Support 0 Dec 17, 2021
E Solved! How can I check activity from long ago? Laptop Tech Support 1 Dec 6, 2021
M Solved! Shift key is activated with mouse scrolling Laptop Tech Support 1 Aug 22, 2021
M Question 100% SSD activity with notebook cooler while gaming Laptop Tech Support 5 May 17, 2021
M Question Issues activating Office 2010 from one computer to another Laptop Tech Support 4 Nov 7, 2020
A Question How to activate a finger printer on an EVOO 15.6 Gaming Laptop ? Laptop Tech Support 0 Jul 17, 2020
How to enable virtualization in BIOS Lenovo Windows 10
Question Sound from network activity in headphone jack Asus Zenbook UX390 Laptop Tech Support 0 May 7, 2020
R How to Record the Screen Activity on a MacBook Pro Laptop Tech Support 0 Jan 8, 2019
R How to Use Activity Monitor to Speed Up your MacBook Pro Laptop Tech Support 0 Jan 8, 2019
K Solved! Hp Envy powers, fan spins, no hdd activity, screen black, keyboard lights off Laptop Tech Support 5 Dec 17, 2018
B Samsung Notebook turns on, but HD light not active, Nothing on screen Laptop Tech Support 3 Nov 19, 2018
N Shortcuts activated by random keys. Laptop Tech Support 1 Oct 28, 2018
M my computer ent to me massgage activation office Laptop Tech Support 3 Sep 25, 2018
R Laptop not turning on after being shut down automatically, and Windows activation problem Laptop Tech Support 3 Sep 20, 2018
J Your account has been temporarily locked We’ve detected suspicious activity on your Facebook account and have temporarily lo Laptop Tech Support 2 Sep 11, 2018
P Hello can dell latitude d620 use Bluetooth? If yes how can I get it b'se I have already activated in the bios but I can't seem Laptop Tech Support 1 Jun 2, 2018
C need magellan activation code Laptop Tech Support 4 May 30, 2018
J Peculiar Laptop Activity (Keyboard, boot up & shutdown) Laptop Tech Support 2 May 17, 2018
R hp elite2570p wont power up at all.power lcd indicate okey,bartery lcd indicates a white-orange blink patern but disk activity Laptop Tech Support 1 Apr 12, 2018

  • Advertising
  • Cookies Policies
  • Privacy
  • Term & Conditions
  • Topics

post views: 13,766

Windows 10 Credential Guard is currently another hot topic considering cyber security. Credential Guard is a new feature in Windows 10 (Enterprise and Education edition) that helps to protect your credentials on a machine from threats such as pass the hash.

To be able to enable Credential Guard in Windows, you need to have virtualization enabled on the CPU in the BIOS. Virtualization is rarely enabled by default, and as such you will need to enable it manually (F1, enter BIOS, modify the setting) or better yet, find a solution to do so remotely and automatically.

I have created following script in Powershell, that initially enables virtualization in the BIOS (Note: We only use Lenovo laptops, hence this is made for Lenovo laptops only) and then apply the registry-keys to enable Credential Guard. All steps are logged into c:\Windows\EnableCredentialGuard.log

The script can be targeted to the proper Windows 10 versions through SCCM collections (I this example I only target W10 1607 and 1703, as these Windows 10 versions no longer require the Isolated User Mode feature when enabling Credential Guard, as it’s now embedded into the Hypervisor)

When deploying powershell script from SCCM, remember to create the program with a command line like this: powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File .\CredentialGuard\Enable-VirtualizationCredentialGuard.ps1

How to enable virtualization in BIOS Lenovo Windows 10

<#
.SYNOPSIS
    Enable virtualization in Lenovo Bios and enable Credential Guard in Windows 10
.DESCRIPTION
    This script will only run on Lenovo computers. If run on Lenovo computer, the script will check if virtualization is enabled in BIOS. 
    If not, virtualization will be enabled in the process of enabling CredentialGuard.
    Also appends actions to logfile: EnableCredentialGuard.log
 
.NOTES
    FileName:    Enable-VirtualizationCredentialGuard.ps1
    Author:      Martin Bengtsson
    Created:     19-07-2017
#>

$Logfile = "C:\Windows\EnableCredentialGuard.log"

#Create LogWrite function
Function LogWrite
{
   Param ([string]$Logstring)

   Add-Content $Logfile -Value $Logstring
}

#Get computermanufacturer
$Lenovo = Get-WmiObject Win32_ComputerSystemProduct | Select-Object Vendor

#If not a Lenovo laptop, write to log and exit script
If ($Lenovo.Vendor -ne "Lenovo"){
    
    LogWrite "Not a Lenovo laptop - exiting script"
    Write-Warning -Message "Not a Lenovo laptop - exiting script" ; exit 1
}

Else {
    
    Write-Host -ForegroundColor Yellow "Collecting Lenovo_BiosSetting information" ; LogWrite "Collecting Lenovo_BiosSetting information"
    $VirtEnabled = Get-WmiObject -Class Lenovo_BiosSetting -Namespace root\WMI | Where-Object {$_.CurrentSetting -match "Virtualization*"} | Select-Object CurrentSetting

If ($VirtEnabled.CurrentSetting -eq "VirtualizationTechnology,Disable"){
    
    Write-Host -ForegroundColor Cyan "Virtualization disabled - trying to enable virtualization" ; LogWrite "Virtualization disabled - trying to enable virtualization"
    Try {
        (Get-WmiObject -Class Lenovo_SetBiosSetting -Namespace root\wmi).SetBiosSetting("VirtualizationTechnology,Enable")
        (Get-WmiObject -Class Lenovo_SaveBiosSettings -Namespace root\wmi).SaveBiosSettings()

    }
    Catch {
        Write-Host -ForegroundColor Cyan "An error occured when enabling virtualization in the BIOS" ; LogWrite "An error occured when enabling virtualization in the BIOS" ; exit 1
    }
    cls
    Write-Host -ForegroundColor Cyan "Virtualization Successfully enabled" ; LogWrite "Virtualization Successfully enabled"
    
}

#Add required registry key for Credential Guard
$RegistryKeyPath = "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard"
    If (-not(Test-Path -Path $RegistryKeyPath)) {
        Write-Host -ForegroundColor Yellow "Creating HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard registry key" ; LogWrite "Creating HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard registry key"
        New-Item -Path $RegistryKeyPath -ItemType Directory -Force
    }
    #Add registry key: RequirePlatformSecurityFeatures - 1 for Secure Boot only, 3 for Secure Boot and DMA Protection
    New-ItemProperty -Path $RegistryKeyPath -Name RequirePlatformSecurityFeatures -PropertyType DWORD -Value 1
    Write-Host -ForegroundColor Yellow "Successfully added RequirePlatformSecurityFeatures regkey" ; LogWrite "Successfully added RequirePlatformSecurityFeatures regkey"
    
    #Add registry key: EnableVirtualizationBasedSecurity - 1 for Enabled, 0 for Disabled
    New-ItemProperty -Path $RegistryKeyPath -Name EnableVirtualizationBasedSecurity -PropertyType DWORD -Value 1
    Write-Host -ForegroundColor Yellow "Successfully added EnableVirtualizationBasedSecurity regkey" ; LogWrite "Successfully added EnableVirtualizationBasedSecurity regkey"
    
    #Add registry key: LsaCfgFlags - 1 enables Credential Guard with UEFI lock, 2 enables Credential Guard without lock, 0 for Disabled
    New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Lsa -Name LsaCfgFlags -PropertyType DWORD -Value 2
    Write-Host -ForegroundColor Yellow "Successfully added LsaCfgFlags regkey" ; LogWrite "Successfully added LsaCfgFlags regkey"
    
    Write-Host -ForegroundColor Yellow "Successfully enabled Credential Guard - please reboot the computer" ; LogWrite "Successfully enabled Credential Guard - please reboot the computer"
    
}   

Snip of the logfile when everything succeeds:

How to enable virtualization in BIOS Lenovo Windows 10

How do I enable virtualization in Click BIOS?

[How To] Enable/Disable AMD virtualization in BIOS.
Open BIOS menu..
Go to Advanced- > IOMMU and enable/disable AMD IOMMU. B. AMD SVM..
Go to Advanced -> SVM Mode and enable/disable AMD SVM..

How do I enable Hyper

Select Control Panel. Select Programs and Features (View by: Large icons). Select Turn Windows features on or off. Select both Hyper-V Management Tools and Hyper-V Platform options.

How do you enable virtualization is enabled Windows 10?

Enable the Hyper-V role through Settings.
Right click on the Windows button and select 'Apps and Features'..
Select Programs and Features on the right under related settings..
Select Turn Windows Features on or off..
Select Hyper-V and click OK..

How do I enter BIOS on Lenovo laptop?

Turn the PC off. Turn the PC on. Immediately and repeatedly press F2 or (Fn+F2). Accessing the BIOS may take multiple attempts.