Hi There,
Thanks for the follow up response and clarification that you are a technician.
Since you already tried the basic standard process. Let us work on the next step:
⬤ Use Task Scheduler to run the script at startup (with admin rights)
You can schedule the script once as admin so it runs at every boot without requiring the user to have admin privileges.
► Open Task Scheduler
• Press Windows + S
• Then type: Task Scheduler
• And open► Create Task
• Click Create Task
• not Basic Task► Set up the Task
• Under General tab
• At startup
• Name: Disable VBS
• Then select
Run whether user is logged on or not
• Use your admin account
(or SYSTEM account)► Add a Trigger
• Go to Triggers tab
• Click New
• Then choose At startup
• Click OK► Under Actions
• Go to the Actions tab
• Click New
• Choose Start a Program
• Then type: powershell.exe
• Add arguments:
-ExecutionPolicy Bypass -File "C:\Scripts\DisableVBS.ps1"
(Update the path to match your script location)► Save the Task
• Click OK
• Then enter admin password if askedHopefully this solves the issue for now.
Best Regards,
Kelvin || Independent Adviser
Thank you kindly for your support, while this still needs to be checked by Microsoft for a full fix, your procedure is the only one that actually manages to disable VBS for a longer period of time.
I had to tinker a little in he task manager in order for it to fully recognize the scripts and permissions but it worked in the end.
Right now the user is only presented with a DeviceGuard Disable confirmation screen before Windows is loaded, but after confirming that no admin passwords are asked and the VBS is permanently in it's "Not Enabled" State.
Once again thank you for your time and your help, i was losing sanity trying to get VB and VMWare to work in Windows 11.