Powershell Tip #84: Retrieve a random name from a file

By | December 3, 2015

Tip: In my FAQ Spanish I have been asked how to retrieve a random name from a text file which contains names separated by comma.

There are several ways to do that, but I prefer to take advantage of the -InputObject parameter instead of piping to Get-Random.

random-names-powershell-separated-comma


previous-buttonnext-button

One thought on “Powershell Tip #84: Retrieve a random name from a file

  1. Pingback: Powershell Tip #85: Run an infinite / endless / continuous ping | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *