Verified issue does not already exist?
I have searched and found no existing issue
What error did you receive?
I'm running this on Windows 2022 on SQL 2022 installation alongside existing SQL Server 2109, both Enterprise Editions. Worked fine prior to SS2022 install.
Poss x86/x64 issue with SQL Server 2022 common components?
Steps to Reproduce
# provide your command(s) executed pertaining to dbatools
# please include variable values (redacted or fake if needed) for reference
Enable-DbaAgHadr
Please confirm that you are running the most recent version of dbatools
Yes, using latest version.
Other details or mentions
No response
What PowerShell host was used when producing this error
Windows PowerShell (powershell.exe)
PowerShell Host Version
TBA
SQL Server Edition and Build number
SQL SErver 2022 -016.0.4210.1
.NET Framework Version
TBA