mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
Replace Get-WmiObject with Get-CimInstance
This commit is contained in:
@@ -377,7 +377,7 @@ function Get-ToolsByName {
|
||||
|
||||
function Get-WinVersion
|
||||
{
|
||||
(Get-WmiObject -class Win32_OperatingSystem).Caption
|
||||
(Get-CimInstance -ClassName Win32_OperatingSystem).Caption
|
||||
}
|
||||
|
||||
function Test-IsWin19
|
||||
|
||||
Reference in New Issue
Block a user