GetComputerInfoCommand.Property Property

Definition

The Property parameter contains the names of properties to be retrieved. If this parameter is given, the cmdlet returns a PSCustomObject containing only the requested properties. Wild-card patterns may be provided

public:
 property cli::array <System::String ^> ^ Property { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public:
 property Platform::Array <Platform::String ^> ^ Property { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
public string[] Property { get; set; }
member this.Property : string[] with get, set
Public Property Property As String()

Property Value

String[]

Remarks

Any named properties that are not recognized are ignored. If no recognized properties are provided the cmdlet returns an empty PSCustomObject.

If a provided wild-card pattern contains only an asterisk ("*"), the cmdlet will operate as if the parameter were not given at all and will return a fully-populated ComputerInfo object.

Applies to