Solved Script for disabling Virtual Based Security on 24H2


andrewtjb

Well-known member
Local time
9:51 PM
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 Canary Channel
    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
    Samsung SAM0A87 Samsung SAM0D32
    Screen Resolution
    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
    ESET Internet Security
  • 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-S
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Mouse
    Logitek M185
    Keyboard
    Logitek K270
    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 Canary Channel
    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
    Samsung SAM0A87 Samsung SAM0D32
    Screen Resolution
    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
    ESET Internet Security
  • 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-S
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Mouse
    Logitek M185
    Keyboard
    Logitek K270
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender

Latest Support Threads

Back
Top Bottom