there is something wrong with these code
PS C:\Users\CDH> $wshnetwork = New-Object -comobject "Wscript.network"
PS C:\Users\CDH> $wshnetwork.EnumPrinterConnections()
after i input above code,the directions of the error displayed on the screen. anyone can help me to solve the problem?
使用“0”个参数调用“EnumPrinterConnections”时发生异常:“RPC 服务器不可用。 (异常来自 HRESULT:0x800706BA)” //its mean something wrong that using zero parameter call "EnumPrinterConnections" , warn: the RPC Service Unavailable
所在位置 行:1 字符: 35 // location row:1 character 35
+ $wshnetwork.EnumPrinterConnections <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
Last edited by cdh49; January 12th, 2012 at 08:16 AM..
|