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.
4848
4949``` powershell
5050Get-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" }
5252```
5353
5454### Correct
5555
5656``` powershell
5757Get-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" }
5959```
You can’t perform that action at this time.
0 commit comments