Select the product you need help with
HOW TO: Programmatically Create a Printer and Printer Port by Using PrinterAdmin (Prnadmin.dll) with a Visual Basic Script in Microsoft Windows 2000Article ID: 321025 - View products that this article applies to. This article was previously published under Q321025 NoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center
(http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000)
is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle
Policy
(http://support.microsoft.com/lifecycle/)
.On This PageSUMMARY This step-by-step article describes how to programmatically
create a printer and printer port by using the PrinterAdmin tool (Prnadmin.dll)
and a Visual Basic script in Microsoft Windows 2000. Overview of Prnadmin.dllPrinterAdmin is available in the Microsoft Windows 2000 Resource Kit. It is a Component Object Model (COM)-based tool that administrators can use to manage printers, drivers, and ports on local and remote Windows 2000-based computers. PrinterAdmin provides large-scale, non-interactive control of printers through the use of scripts. You can either create your own scripts or modify one of the sample scripts that is provided with PrinterAdmin to perform the following tasks:
How to Add a Printer and Printer Port by Using Prnadmin.dll with a Visual Basic Script
REFERENCES For more information about the PrinterAdmin tool, see the
Prnadmin.doc file that is available in the Windows 2000 Resource Kit. The
Prnadmin.doc file is located in the Program Files\Resource Kit folder (if the
Windows 2000 Resource Kit is installed to the default location). For more information about the Windows 2000 Resource Kit, visit the following Microsoft Web site: http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/default.mspx For additional
information about how to add a default printer by using a Visual Basic script,
click the article number below to view the article in the Microsoft Knowledge
Base:
(http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/default.mspx)
263226 For
additional information about how to migrate a print server configuration
between Windows NT 4.0 and Windows 2000 computers, click the article number
below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/263226/EN-US/
)
How to Add a Default Printer Using a Visual Basic Script
315983
(http://support.microsoft.com/kb/315983/EN-US/
)
HOW TO: Migrate a Printer Server Configuration Between Windows NT 4.0 or Windows 2000 Computers with the Printer Migrator 2000 Tool
Properties | Article Translations |


Back to the top








