SetDatabaseConnection WMIMethodException Error

Mike Horton 0 Reputation points
2024-05-06T19:26:46.2033333+00:00

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?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,852 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
{count} votes