Powershell > Variables from Text File - TechRepublic
Question
October 26, 2009 at 08:03 AM
maxpowers410

Powershell > Variables from Text File

by maxpowers410 . Updated 16 years, 8 months ago

Hi guys

Was wondering if anyone knew how to have an external .txt file in which i have a list of server IPs.
These need to be read by my powershell skript and each individual one turned into a variable.

I am making a loop, and everytime my script starts the loop again i want it to take the next line in the corresponding text file…
Any ideas???

Thanks in advance!!

Max

This discussion is locked

All Comments