Skip to content

Instantly share code, notes, and snippets.

@jbuenting jbuenting/Powershell
Created Nov 17, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.