I am working on a script that would return driver information of given remote computers.
I am wondering if it is possible or is there a workaround where I get it to work with higher privileges.
For example I would create a form that would pop up, asks for user credentials, and the script would run using the entered users credentials.
Here is the script so far:
Sub start()
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_PnPSignedDriver", , 48)
For Each objItem In colItems
Debug.Print "Description: " & objItem.Description
Debug.Print "DeviceClass: " & objItem.DeviceClass
Debug.Print "DeviceID: " & objItem.DeviceID
etc...
So is this possible? Is there a way to achieve this?