Hi All,
Is there a programmatic way to check if 'Enable Mail Profile' is enabled for SQL Server Agent for an instance? Rather than going to right-click 'Properties' --> SQL Server Agent, etc on my 100s of SQL instances, I was hoping it was something I could check using a Central Management Server via a T-SQL query...or even better by using a policy and PBM in conjunction with my CMS.
I have seen one article that recommends to use xp_regread to read registry values to get the value but I would prefer not to query the registry directly for these type of administrative checks..
Thanks in advance,