And BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thank you for your reply. The code works if I am just looking for a few volumes on the current domain. I need at least 100 volumes for machines across a different domain. I have an idea of entering the names for this somewhere along the lines like
-computername -filter "name -like ""lm*mr"""
How would I look for all the machines volume on machines associated with machines that are similar.