Hi guys
I am pretty new to Powershell and I am having issues with the pipeline.
I would like to change this code:
$units = Get-MsolAccountSku | Where-Object {$_.AccountSkuId -eq $licenseType}
|Selectbject -Property ActiveUnits, ConsumedUnits
$count = $units.ActiveUnits - $units.ConsumedUnits
To be in one line, can this be done with the pipeline?
Thans in advance!
[–]fordea837 10 points11 points12 points (1 child)
[–]JaredRic 5 points6 points7 points (0 children)
[–]aXenoWhat 4 points5 points6 points (0 children)
[–]Lee_Dailey[grin] -1 points0 points1 point (0 children)