Created
March 16, 2017 15:49
-
-
Save jkavanagh58/7d7e56d6034bec74e044bf785adb24c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of an inline filter and then a calculated expression | |
get-adcomputer -Filter {OperatingSystem -like "*Server*" -AND Name -like "PIT*"} | | |
Select-Object Name,@{n="online";e={test-connection -Computer $_.Name -Count 1 -Quiet}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment