Skip to content

Instantly share code, notes, and snippets.

@jbuenting
Created November 17, 2015 17:54
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 jbuenting/229c8cee53ba0a1642ed to your computer and use it in GitHub Desktop.
Save jbuenting/229c8cee53ba0a1642ed to your computer and use it in GitHub Desktop.
param([string]$VMNameStr)
# ----- split string on commas into array of names. Ignore if name length is 0
($VMNameStr -split ",").Trim(' ') | where length -ne 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment