File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,12 @@ Change to the equivalent CIM based cmdlet.
48
48
49
49
``` powershell
50
50
Get-WmiObject -Query 'Select * from Win32_Process where name LIKE "myprocess%"' | Remove-WmiObject
51
- Invoke-WmiMethod ? Class Win32_Process ? Name "Create" ? ArgumentList @{ CommandLine = "notepad.exe" }
51
+ Invoke-WmiMethod - Class Win32_Process - Name "Create" - ArgumentList @{ CommandLine = "notepad.exe" }
52
52
```
53
53
54
54
### Correct
55
55
56
56
``` powershell
57
57
Get-CimInstance -Query 'Select * from Win32_Process where name LIKE "myprocess%"' | Remove-CIMInstance
58
- Invoke-CimMethod ? ClassName Win32_Process ? MethodName "Create" ? Arguments @{ CommandLine = "notepad.exe" }
58
+ Invoke-CimMethod - ClassName Win32_Process - MethodName "Create" - Arguments @{ CommandLine = "notepad.exe" }
59
59
```
You can’t perform that action at this time.
0 commit comments