I'm trying to create a simple vbs script to get UWF status:
Set objWMIService = GetObject("winmgmts:\\.\root\StandardCimv2\embedded:UWF_Filter")
WScript.Echo objWMIService.CurrentEnabled
The output is null
even if I run it as administrator.
I'm trying to create a simple vbs script to get UWF status:
Set objWMIService = GetObject("winmgmts:\\.\root\StandardCimv2\embedded:UWF_Filter")
WScript.Echo objWMIService.CurrentEnabled
The output is null
even if I run it as administrator.
Copyright © 2021 Jogjafile Inc.
I found the solution: I've to look for the instances of UWF_Filter. This is the working code for UWF_filter
Bonus point: this script is intended for BGInfo, so you need to replace
Wscript.Echo
withEcho
.