PS C:\> Get-WmiObject -class win32_printer -Filter name= ‘\\server\printername'”
Get-WmiObject : 无效查询 “select \\server\printername’from win32_printer where name=”
所在位置 行:1 字符: 1
+ Get-WmiObject -class win32_printer -Filter name= ‘\\server\printername’…
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-WmiObject],ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
查询本地计算机信息没有问题,只要输入\\带网络打印机的都会出现错误