Skip to content

Instantly share code, notes, and snippets.

@chriskuech
Last active June 16, 2019 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriskuech/425d52b653d7f6305bf360e3e9866aeb to your computer and use it in GitHub Desktop.
Save chriskuech/425d52b653d7f6305bf360e3e9866aeb to your computer and use it in GitHub Desktop.
function Select-ClusterSetPartialConfig([string]$Container, [string[]]$Vector) {
$clusterId = $Vector -join "-"
Get-ChildItem $Container `
| ? {$clusterId -like ($_.BaseName -replace "_", "*")}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment