Hi I’m very new to Powershell and I’m trying to figure the basics out myself but in this code shared in the jump start on virtual academy I cannot figure out what ‘e’ is on line 2.
Code:
Get-WmiObject win32_logicaldisk -filter “DeviceID=‘c:’” |
Select @{n=‘freegb’;e={$.freespace / 1gb -as [int]}}
Because of the output I know n=name, but e is a mystery to me. I’m just trying to figure out WHY this select statement works.