SetDatabaseConnection WMIMethodException Error
I'm using a slightly modified version of the script found here: https://blog.aelterman.com/2018/01/03/complete-automated-configuration-of-sql-server-2017-reporting-services/. The modification is that I'm pointing to (local)\SQLExpress on line 41 as the SQL namespace is under computername\SQLEXPRESS. This has worked fine until no when I'm trying to set up Reporting Services using SQL Reporting Services 2022. Now when I run the line $configset.SetDatabaseConnection("(local\SQLExpress", ReportServer", 2, "","") it returns an Exception calling "SetDatabaseConnection" : "" and then further down FullyQualifiedErrorId : WMIMethodException"", "") Has something changed in scripting out the Report Server?