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 ?
Thanks,
Sam