• Thank you!

    I am not good in powershell scripting, so most probably I'll do it in T-SQL. The queries in your scripts will be my basis.