Skip to content

Instantly share code, notes, and snippets.

@MikeFal
Created January 4, 2017 18:16
Show Gist options
  • Save MikeFal/4ca4a6d881bfa2b283a8708f6ecc9ae6 to your computer and use it in GitHub Desktop.
Save MikeFal/4ca4a6d881bfa2b283a8708f6ecc9ae6 to your computer and use it in GitHub Desktop.
$sql = @('PICARD','RIKER')
$servers = @('KIRK','SPOCK','PICARD','RIKER','WORF','WESLEY')
$servers | Where-Object {$sql -contains $_}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment