mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 02:28:54 +08:00
Replace Get-WmiObject with Get-CimInstance
This commit is contained in:
@@ -7,7 +7,7 @@ Import-Module -Name ImageHelpers -Force
|
||||
|
||||
function Get-WDKVersion
|
||||
{
|
||||
$WDKVersion = (Get-WmiObject Win32_Product -Filter "Name = 'Windows Driver Kit'").version
|
||||
$WDKVersion = (Get-CimInstance -ClassName Win32_Product -Filter "Name = 'Windows Driver Kit'").Version
|
||||
|
||||
if (!$WDKVersion)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user