Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JohnL4/bb91e96830df57366de7de18c3cde30b to your computer and use it in GitHub Desktop.
Save JohnL4/bb91e96830df57366de7de18c3cde30b to your computer and use it in GitHub Desktop.
Synthetic name-value properties in powershell are CALCULATED properties
# Hard to search when you don't know the right keywords.
get-service `
| select @{name="DependentServiceName";expr={$_.Name}} -expand ServicesDependedOn `
| select DependentServiceName,Name `
| sort DependentServiceName,Name `
| ft -au -wr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment