Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Windows PowerShell Programming ISBN: 978-0-470-17393-0
This is the forum to discuss the Wrox book Professional Windows PowerShell Programming: Snapins, Cmdlets, Hosts and Providers by Arul Kumaravel, Jon White, Michael Naixin Li, Scott Happell, Guohui Xie, Krishna C. Vutukuri; ISBN: 9780470173930
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Windows PowerShell Programming ISBN: 978-0-470-17393-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2012, 08:04 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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..




Similar Threads
Thread Thread Starter Forum Replies Last Post
what is wrong with this code? Zion_Rebecca Beginning PHP 1 August 4th, 2011 08:10 AM
There is something wrong in my code? Cade_Feng BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 3 March 4th, 2011 02:17 AM
Wrong code! sabra BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 0 May 23rd, 2010 01:20 PM
What is wrong with this code? SaharaWizard VB Databases Basics 2 January 28th, 2006 08:20 AM
Can anyone tell me what's wrong with this code? hobgoblin BOOK: Beginning ASP 3.0 0 March 3rd, 2005 01:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.