Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 12th, 2012, 07: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 07:16 AM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 01: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 07:20 AM
Can anyone tell me what's wrong with this code? hobgoblin BOOK: Beginning ASP 3.0 0 March 3rd, 2005 12:47 PM



All times are GMT -4. The time now is 07:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.