The WMI namespace isn't a file path. :-)
Change the "C:" to "root\" and try again.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm programmatically making a preemptive check for SSRS, specifically checking if it was installed in EVAL/Evaluation mode.
Where would this value be stored in the installation folders? I am using powershell to accomplish this and have been told this command would help me parse out the needed information:
Get-WmiObject -namespace "C:\Microsoft\SqlServer\ReportServer\RS_SSRS\V15" -class MSReportServer_Instance | Select-Object -Property EditionName, Version, InstanceName
Unfortunately, that path doesn't seem to hold anything. I verified that SSRS is indeed installed and working. I'll need the paths for the 2019 and 2017 versions.
Background:
Sometimes client installs will be configured in EVAL mode and 6 months after initial installation, their reporting server will stop working because of this. I want to make a preemptive check that will ensure that SSRS is not in EVAL mode. This will be implemented into a script that checks many environment variables, ensuring they are configured correctly.
Thanks!
The WMI namespace isn't a file path. :-)
Change the "C:" to "root\" and try again.