Have you tried using SQL Management Studio? You should be able to build a query to get this information using it. You can then take that query and use it in whatever powershell script you write.
↧
Have you tried using SQL Management Studio? You should be able to build a query to get this information using it. You can then take that query and use it in whatever powershell script you write.