Welcome to the community!

Please take a look at the sticky thread PLEASE READ BEFORE POSTING! Read if you’re new to the PowerShell forum!

We’re happy to help, but posting a huge script that someone else wrote and saying “not running” doesn’t help anyone help you. Maybe contact the author with your error message(s). I can tell you that the author doesn’t know how to properly use subexpressions. This won’t be a cause for the script not to run, just give a little more verbosity when an error comes.

If you’d like, try breaking it down into smaller pieces to see where it’s broken and why.

1 Spice up