0

Im working on a powershell file and im a bit confused because of the following syntax: enter image description here

what kind of syntax is this??? And where can I read more about it? Is "select" just an abbrevation for select-object?

mklement0
  • 382,024
  • 64
  • 607
  • 775
Lumberjack
  • 419
  • 6
  • 12
  • 6
    You'll want to read [`about_Calculated_Properties`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_calculated_properties?view=powershell-7.2) – Mathias R. Jessen Nov 04 '22 at 14:52
  • To add to Mathias' comment: the arguments being passed to `select` (in the form of `@{ key = value; ... }`) are _special-purpose_ [hashtables](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_Hash_Tables) with _prescribed entries_ that provide the implementation of calculated properties. – mklement0 Nov 04 '22 at 15:36

0 Answers0