Skip to content

Commit fb6646e

Browse files
authored
Fix Invoke-Wmi* cmdlet name in AvoidUsingWMICmdlet.md (#156)
1 parent fd1a566 commit fb6646e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/docs-conceptual/PSScriptAnalyzer/Rules/AvoidUsingWMICmdlet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following cmdlets should not be used:
1717

1818
- `Get-WmiObject`
1919
- `Remove-WmiObject`
20-
- `Invoke-WmiObject`
20+
- `Invoke-WmiMethod`
2121
- `Register-WmiEvent`
2222
- `Set-WmiInstance`
2323

@@ -38,7 +38,7 @@ Change to the equivalent CIM based cmdlet.
3838

3939
- `Get-WmiObject` -> `Get-CimInstance`
4040
- `Remove-WmiObject` -> `Remove-CimInstance`
41-
- `Invoke-WmiObject` -> `Invoke-CimMethod`
41+
- `Invoke-WmiMethod` -> `Invoke-CimMethod`
4242
- `Register-WmiEvent` -> `Register-CimIndicationEvent`
4343
- `Set-WmiInstance` -> `Set-CimInstance`
4444

0 commit comments

Comments
 (0)