No Instance(s) Available错误
product where name="program name" call uninstall时报错No Instance(s) Available怎么回事?
报错:"No Instance(s) Available" 通常出现在分布式系统或者服务框架中,意味着客户端尝试连接到服务实例(Instance),但是没有找到可用的服务实例来处理请求。
wmic:root\cli>product where name='Mozilla Firefox' call uninstall
No Instance(s) Available.
wmic:root\cli>
错误原因分析:program name输入不正确或不完整
解决方法:打开程序和功能,查看完整的程序名称,再重新输入并执行代码
Execute (\\PC-2***G\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{35***9-8**5-4**D-A**9-9****}",Name="Adobe Dreamweaver CS",Version="9")->Uninstall() (Y/N/?)?
Execute (\\PC-2***G\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{35***9-8**5-4**D-A**9-9****}",Name="Adobe Dreamweaver CS",Version="9")->Uninstall() (Y/N/?)? Y回车
接着就会出现以下提示:
Method(方法) execution(执行) successful(成功).
Out Parameters(参数/范围):
instance(实例) of __PARAMETERS
No Instance(s) Available错误问题解决。