SetDatabaseConnection WMIMethodException Error

Mike Horton 5 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?

Windows for business | Windows Server | User experience | PowerShell
SQL Server | Other
{count} vote

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.