I am writing a script where I want the users to either enter in a manual server or they could supply a list of servers from say c:\temp\servers.txt.
Only problem is that I have no idea how I make this happen - ie I know I could prompt the user to enter in the below - but I would like them to have a button choice or something - maybe they can type in a manual server or a path and then powershell figures out which is which?
Any idea how I go around this?
Read-Host "Do you wish to enter in a manual computer or list of computers? "
Thanks,