Skip to content

Commit 91b9c5f

Browse files
Ben ReaderBen Reader
Ben Reader
authored and
Ben Reader
committed
GWMI chanted to GCIM.
1 parent 7c79005 commit 91b9c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Install-VSCode.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ param(
132132
if (!($IsLinux -or $IsOSX)) {
133133
switch ($Architecture) {
134134
"64-bit" {
135-
if ((Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture -eq "64-bit") {
135+
if ((Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -eq "64-bit") {
136136
$codePath = $env:ProgramFiles
137137
$bitVersion = "win32-x64"
138138
}

0 commit comments

Comments
 (0)