Prerequisites
Version
5.1, 7.0, 7.1, 7.2, 7.3 (preview)
Link to affected document
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/add-member#example-5-copy-all-properties-of-an-object-to-another
Description of the documentation error
Example 5 of Add-Member uses an incorrect parameter value for the MemberType parameter. Instead of Property it should be NoteProperty.
Suggested fix
In example 5, change the MemberType parameter value from Property to NoteProperty.
Prerequisites
Version
5.1, 7.0, 7.1, 7.2, 7.3 (preview)
Link to affected document
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/add-member#example-5-copy-all-properties-of-an-object-to-another
Description of the documentation error
Example 5 of
Add-Memberuses an incorrect parameter value for the MemberType parameter. Instead ofPropertyit should beNoteProperty.Suggested fix
In example 5, change the MemberType parameter value from
PropertytoNoteProperty.