How to get information about an AG group using powershell

  • vsamantha35


    Points: 11170

    Hi Experts,

    Does anyone has a powershell script which displays below information:

    for a given AG listener name or AG group name, I need to get Listnener name, AG name, replicas , replica role desc ,

    Can we get this information using pure powershell which reads registry values or do we need to execute a sql DMV to get that information ?



  • Site Owners

    SSC Guru

    Points: 80373

    Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • TUellner


    Points: 2608

    dbatools a whole group of PowerShell tools to get information about AG.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply