如何使用Powershell 2 Get-WmiObject在Windows Server 2008 R2上查找SQL Server Reporting Services(SQL2008)的实例
我试图使用PowerShell 2“Get-WmiObject”命令来使用此命令查找报告服务实例 get-wmiobject -class "MSReportServer_Instance" -namespace "root\Microsoft\SqlServer\ReportServer" 错误,我回来 Get-WmiObject : Invalid class At line:1 char:14 + get-wmiobject <<<< -class "MSReportServer_Instance" -namespace "root\Microsoft\SqlServer" + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand 笔记 这是Powershell 2 OS = Windows Server 2008 R2 RC(x64) SQL = SQL 2008 SP1(x64) 报告服务已安装并运行 – 有多个报告正在运行) 一切都在同一个盒子上运行(脚本,SQL,SSRS) 链接到SSRS的WMI信息: http : […]