$PropSplat = @( 'Name' 'Status'
@{ Name = 'BoolStatus' Expression = { if($PSItem.Status -eq 'Running'){$false}else{$true} } })
Get-Service m* | Select-Object $PropSplat
No comments:
Post a Comment