Skip to content

Commit 28ca991

Browse files
committed
Merge branch 'dev' of https://github.com/rcmaehl/WhyNotWin11 into dev
2 parents 191ba52 + 01fbcbd commit 28ca991

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

includes/_WMIC.au3

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
#include "GetDiskInfo.au3"
77

8+
Func _CreateWMIObjects()
9+
Local $Obj_WMIService = ObjGet('winmgmts:\\.\root\cimv2')
10+
Local $Obj_WMIServiceTPM = ObjGet('winmgmts:\\.\root\cimv2\Security\MicrosoftTPM')
11+
Local $aHandles[2] = [$Obj_WMIService, $Obj_WMIServiceTPM]
12+
Return $aHandles
13+
EndFunc
14+
815
Func _GetBIOSInfo($iFlag = 0)
916
Local Static $sSMBIOSBIOSVersion
1017

0 commit comments

Comments
 (0)