The PowerShell pipeline is one of the key features of PowerShell that allows you to greatly reduce the script code that you need to write to accomplish your goals. Unfortunately, not all parameters in a cmdlet allow you to feed them data via the PowerShell pipeline. Here is an example. The Active Directory module has a cmdlet called Add-ADGroupMember. This cmdlets intended purpose is to add an object, such as a user, to a group in active directory. The Members parameter is used to add an object to the group. Here is the help file for this parameter: PS C:\> get-help Add-ADGroupMember -Parameter Members -Members <ADPrincipal[]> Specifies a set of user, group, and computer objects in a comma-separated list to add to a group. To identify each object, use one of the following property values. Note: The identifier in parentheses is the LDAP display name. ...
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.