|
 |
 |
 |
 |
Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms
of Use |
Trademarks
Article ID: 2466246 - Last Review: November 17, 2010 - Revision: 1.0 Printer VBScript error: 0x1A8. Object requiredYou may receive a message similar to one of the following if you attempt to use the print-related Visual Basic script files on a 64-bit Windows operating system.
Unable to enumerate printers, error: 0x1A8. Object required Unable to enumerate printers on server, error: 0x1A8. Object required Unable to enumerate forms, error: 0x1A8. Object required Unable to enumerate ports, error: 0x1A8. Object required Unable to enumerate drivers, error: 0x1A8. Object required Unable to add printer connection, error: 0x1A8. Object required Unable to delete printer connection, error: 0x1A8. Object required Unable to get the default printer, error: 0x1A8. Object required Unable to set the default printer, error: 0x1A8. Object required Unable to add driver, error: 0x1A8. Object required Unable to delete driver, error: 0x1A8. Object required Unable to delete drivers on server, error: 0x1A8. Object required Unable to list drivers, error: 0x1A8. Object required Unable to print the dependent files, error: 0x1A8. Object required Unable to add form, error: 0x1A8. Object required Unable to delete form, error: 0x1A8. Object required Unable to delete printer, error: 0x1A8. Object required Unable to save the configuration of the printer, error: 0x1A8. Object required Unable to restore the configuration of the printer, error: 0x1A8. Object required Unable to get the configuration for the port, error: 0x1A8. Object required Unable to convert the port, error: 0x1A8. Object required Unable to add the TCP port, error: 0x1A8. Object required Unable to list ports, error: 0x1A8. Object required Unable to get port configuration, error: 0x1A8. Object required Unable to update port settings, error: 0x1A8. Object required Unable to get the printer config, error: 0x1A8. Object required Unable to configure printer, error: 0x1A8. Object required Unable to pause printer, error: 0x1A8. Object required Unable to resume printer, error: 0x1A8. Object required Unable to purge printer, error: 0x1A8. Object required Unable to send test page to printer, error: 0x1A8. Object required Unable to list printers, error: 0x1A8. Object required You must register PRNADMIN.DLL with the 32-bit version of REGSVR32.EXE, and also run the script using the 32-bit version of CSCRIPT.EXE.
- Use REGSVR32.EXE located in the %windir%\syswow64 folder to register PRNADMIN.DLL.
%windir%\syswow64\regsvr32.exe PRNADMIN.DLL
- Use CSCRIPT.EXE located in the %windir%\syswow64 folder to run the script
%windir%\syswow64\cscript.exe <vbscript> The following visual basic scripts for manipulating printers are included with the Windows Server 2003 Resource Kit.
clean.vbs - delete all printing components from the specified machine, as if the machine were clean installed. clone.vbs - printer server cloning script for Windows .NET Server 2003 conall.vbs - connects to all printers on a print server defprn.vbs - default printer script for Windows .NET Server 2003 drvmgr.vbs - driver script for Windows .NET Server 2003 forms.vbs - form script for Windows .NET Server 2003 persist.vbs - script for saving and restoring printer configuration portconv.vbs - Script for converting lpr ports to tcp ports PortMgr.vbs - Port operation script for Windows .NET Server 2003 prncfg.vbs - printer configuration script for Windows .NET Server 2003 prnctrl.vbs - printer control script for Windows .NET Server 2003 prndata.vbs - printer data configuration script for Windows .NET Server 2003 prnmgr.vbs - printer script for Windows .NET Server 2003
Resource Kit Support Policy The SOFTWARE supplied in the Windows Resource Kit Tools is not supported under any Microsoft standard support program or service. Customers can, however, report issues and bugs by sending e-mail to rkinput@microsoft.com. Microsoft will, at its sole discretion, address issues and bugs reported in this manner, and responses are not guaranteed. This e-mail address is only for issues related to the Windows Resource Kit Tools and the Windows Deployment and Resource Kits. The SOFTWARE (including instructions for its use and all printed and online documentation) is provided "AS IS" without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the SOFTWARE and documentation remains with you. Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations.
APPLIES TO- Windows Server 2008 Service Pack 2
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
|
 |
 |
 |
 |
 |
 |
 |
| |