Thanks, That worked great. Do you think that you can help me with one other thing. I need a way to create a list of computers that it will exclude. So how do I create a text file that lists the machines that I want to exclude and has the script read from this.