A. To read computer names from a text file, you use the Get-Content cmdlet, which will expect to see one computer name per line. That enables usage like this:
Get-EventLog -Log Security -Newest 20 -ComputerName (gc names.txt)
Note that gc is an alias for Get-Content. The parentheses force that command to execute first, and return its output to the -computerName parameter.
Do you have a Windows PowerShell question? Why not submit it to Don? Post your question at www.windowsitpro.com/FAQs/FAQSubmittalForm.aspx and you might see your answer online! Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.