Solved Script for disabling Virtual Based Security on 24H2


andrewtjb

Well-known member
Local time
2:09 AM
Posts
10
OS
Windows 10 Pro
I thought this could be useful for anyone who's having issues disabling VBS with 24H2.

I had issues getting VBS to turn off on my laptop after installing 24H2 but after some trial and error I've created a batch script to easily disable VBS and Device Guard.

Hopefully it will help anyone having the same issue.
 

Attachments

My Computers

System One System Two

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    X470-F
    Memory
    Corsair 32GB DDR4 3600 MHZ
    Graphics Card(s)
    AMD Radeon RX 5700 XT
    Sound Card
    SupremeFX 8-Channel High Definition Audio CODEC S1220A
    Monitor(s) Displays
    LG 25UM58 Ultrawide
    Screen Resolution
    2560x1080
    Hard Drives
    Corsair Force MP510 480GB
    Corsair Force MP510 240GB
    Samsung SSD 870 EVO 250GB
    Seagate Barracuda 4TB HDD
    PSU
    Corsair RM550x
    Case
    Fractal Design Define R5
    Cooling
    3X Case Fans
    Keyboard
    Ducky One2 SF 65% Black RGB
    Mouse
    SteelSeries Rival 310
    Internet Speed
    50 Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender
  • Operating System
    Windows 10 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    Intel i7-9750H
    Memory
    16 GB DDR4
    Graphics card(s)
    NVIDIA GeForce GTX 1650
    Monitor(s) Displays
    15" IPS
    Screen Resolution
    1920x1080
    Hard Drives
    512 GB SSD
For clarity, your script disables Virtualization-Based Security and not VBS Script.

Some of the Elevenforum members might be confused, since you're posting in General Support forum and not under Virtualization and WSL forum.
 

My Computer

System One

  • OS
    Windows 7
@garlin

Sorry for any confusion wasn't sure where the best place to post was.

For anyone curious I followed the information on Microsofts website to make this script.

Heres the link to the page i used
 

My Computers

System One System Two

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    X470-F
    Memory
    Corsair 32GB DDR4 3600 MHZ
    Graphics Card(s)
    AMD Radeon RX 5700 XT
    Sound Card
    SupremeFX 8-Channel High Definition Audio CODEC S1220A
    Monitor(s) Displays
    LG 25UM58 Ultrawide
    Screen Resolution
    2560x1080
    Hard Drives
    Corsair Force MP510 480GB
    Corsair Force MP510 240GB
    Samsung SSD 870 EVO 250GB
    Seagate Barracuda 4TB HDD
    PSU
    Corsair RM550x
    Case
    Fractal Design Define R5
    Cooling
    3X Case Fans
    Keyboard
    Ducky One2 SF 65% Black RGB
    Mouse
    SteelSeries Rival 310
    Internet Speed
    50 Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender
  • Operating System
    Windows 10 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    Intel i7-9750H
    Memory
    16 GB DDR4
    Graphics card(s)
    NVIDIA GeForce GTX 1650
    Monitor(s) Displays
    15" IPS
    Screen Resolution
    1920x1080
    Hard Drives
    512 GB SSD
Thank you for updating the thread's title. Just as a reminder, a reboot is required after running the script.
 

My Computer

System One

  • OS
    Windows 7
Thank you for posting your script. I'm just getting started using 24H2 and your script was a big help. I let Windows update and when the computer restarted I received two error messages, StartAllBack wouldn't run and my NVIDA display driver stopped working. The basic driver would only recognize my 1st monitor. I tried removing the two updates that Windows would allow me too. After the restart I still had the same problems. When I went to Use Macrium to do a restore, App Control wouldn't let it run even though I had App Control turned off. I ran your script, restarted my computer and everything seem to be working as it should. I'm thinking that the update changed some settings in App Control that caused my problems. I'm thinking about turning Updates back on and see what happens.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    Webroot SecureAnywhere CE 26.1
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-A
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Keyboard
    Logitek K270
    Mouse
    Logitek M185
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
@Winuser

I'm glad it helped.

I don't know much about app control since I've never used it. I'm guessing it's reliant on device guard which the script disables so that's probably why it worked.

Hopefully Microsoft will add a toggle in defender to turn this stuff off without having to rely on scripts.
 

My Computers

System One System Two

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 3900X
    Motherboard
    X470-F
    Memory
    Corsair 32GB DDR4 3600 MHZ
    Graphics Card(s)
    AMD Radeon RX 5700 XT
    Sound Card
    SupremeFX 8-Channel High Definition Audio CODEC S1220A
    Monitor(s) Displays
    LG 25UM58 Ultrawide
    Screen Resolution
    2560x1080
    Hard Drives
    Corsair Force MP510 480GB
    Corsair Force MP510 240GB
    Samsung SSD 870 EVO 250GB
    Seagate Barracuda 4TB HDD
    PSU
    Corsair RM550x
    Case
    Fractal Design Define R5
    Cooling
    3X Case Fans
    Keyboard
    Ducky One2 SF 65% Black RGB
    Mouse
    SteelSeries Rival 310
    Internet Speed
    50 Mbps
    Browser
    Chrome
    Antivirus
    Windows Defender
  • Operating System
    Windows 10 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    Intel i7-9750H
    Memory
    16 GB DDR4
    Graphics card(s)
    NVIDIA GeForce GTX 1650
    Monitor(s) Displays
    15" IPS
    Screen Resolution
    1920x1080
    Hard Drives
    512 GB SSD
@Winuser

I'm glad it helped.

I don't know much about app control since I've never used it. I'm guessing it's reliant on device guard which the script disables so that's probably why it worked.

Hopefully Microsoft will add a toggle in defender to turn this stuff off without having to rely on scripts.
I tried running Windows Update to reinstall the two updates and it happened again. I ran your script again and as far as I can tell everything is working again.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    Webroot SecureAnywhere CE 26.1
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-A
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Keyboard
    Logitek K270
    Mouse
    Logitek M185
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
Thanks you dear creator of the script. It worked well for me !
 

My Computer

System One

  • OS
    Windows
    Computer type
    Laptop
Does turning this off give any practical advantage on the PC? Does it improve the FPS of games, does it open apps faster? Or something else?



IA

Sure! Here's your message translated into English:




🔧 Disabling Virtualization-Based Security (VBS) in Windows 11 24H2 can offer practical advantages — especially for gamers.


🎮 Practical benefits of disabling VBS​


  • Improved gaming performance:
    • VBS can cause performance drops of 5% to up to 25% in some titles, depending on the game and system configuration.
    • This happens because VBS uses virtualization to isolate memory areas, which consumes processing power and may create bottlenecks.
  • Lower latency and CPU usage:
    • Games that demand high frame rates and low latency may benefit from disabling VBS, especially on systems with more modest hardware.
  • More control for advanced users:
    • On gaming-focused PCs, manufacturers often recommend disabling VBS by default.

⚠️ But beware: there are downsides​


  • Reduced security:
    • VBS protects against attacks that attempt to inject malicious code into the system kernel. Disabling it may leave the system more vulnerable to certain types of malware.
  • Not recommended for corporate or high-risk environments:
    • If you use your PC for sensitive work or browse in less secure environments, keeping VBS enabled might be wiser.



If your main goal is to maximize gaming performance, disabling VBS could be a smart move. But if you prioritize security above all, it’s better to keep it on.


Want help disabling VBS safely? I can walk you through it step by step.
 

My Computer

System One

  • OS
    Windows 11 Iot Enterprise 21h2 22000.3260
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    xeon E5-2697v2
    Motherboard
    rampage iv extreme
    Memory
    32gb 8x4gb ddr3 1333 mhz
    Graphics Card(s)
    gtx 570 poit of view
    Sound Card
    realtek HD (ALC898)
    Monitor(s) Displays
    samsung b2030
    Screen Resolution
    1600x900
    Hard Drives
    2tb hd 5400 rpm
    3tb hd 5400 rpm
    1tb nvme pcie 3.0
    PSU
    hx850w
    Keyboard
    mtek
    Internet Speed
    500/250 gpon
    Browser
    r3dfox 146.0
    Antivirus
    none
Back
Top Bottom