MicrosoftDocs / PowerShell-Docs

The official PowerShell documentation sources
https://learn.microsoft.com/powershell
Creative Commons Attribution 4.0 International
1.93k stars 1.55k forks source link

Example 3 calling a variable that is not set and using "CimClasName" rather then "CimClassName" property #11152

Closed alchro closed 1 month ago

alchro commented 1 month ago

Type of issue

Typo

Feedback

I believe that example 3 contains a few minor mistakes:

  1. on the 3rd line, there is a reference to a variable $c that is nowhere declared or assign in the code.
  2. I believe there should be a line added that assigns the value of $s.CimClass to the $c variable.
  3. This is also related to the $c variable, I think here the property would be CimClassName rather then CimClasName.

Page URL

https://learn.microsoft.com/en-us/powershell/module/cimcmdlets/get-cimassociatedinstance?view=powershell-7.4

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/CimCmdlets/Get-CimAssociatedInstance.md

Author

@sdwheeler

Document Id

e086ec4d-08b8-3a9e-cd3f-d5c30d8d6e86