Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, September 29, 2013 2:11 PM
I am sure it can be done with a wql query like:
select videoprocessor from win32_videocontroller where videoprocessor like "%geforce 8800 gt%" I just wonder is there have a equal query in WMIC? |
All replies (6)
Sunday, September 29, 2013 4:15 PM âś…Answered
Sure, in WMIC, run:
PATH Win32_VideoController WHERE "VideoProcessor LIKE '%geforce 8800 gt%'" GET VideoProcessor
Or in Command Prompt, run:
WMIC PATH Win32_VideoController WHERE "VideoProcessor LIKE '%geforce 8800 gt%'" GET VideoProcessor
Or in PowerShell, run:
Get-WmiObject Win32_VideoController -Filter "VideoProcessor LIKE '%geforce 8800 gt%'" | Select VideoProcessor
/ Johan
Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch
Sunday, September 29, 2013 3:11 PM
Is this a CM12 question or a general Windows question? What does this have to do with OSD?
Sunday, September 29, 2013 4:17 PM | 1 vote
And Garth, queries on Win32_VideoController has everything to do with OSD :)
/ Johan
Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch
Sunday, September 29, 2013 5:30 PM
I understand why you would want to query WMI but why would you want to do it via wmic? why not use the wmi query options within a TS?
Sunday, September 29, 2013 10:08 PM
When testing conditions manually on the machine. Same reason as why people like wbemtest and PowerShell :)
/ Johan
Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch
Monday, September 30, 2013 2:56 AM
Thanks Johan and Garth,it very helpful for me.
Usually I would use wmic to query the condition and validate it via wbemtest before making it available within a TS.