Apr 16, 2018 How to add printers with no user interaction in Windows. Content provided by Microsoft. Windows 2000 and Windows Server 2003 provide the ability to install a printer using a command line. This is particularly useful when you add or remove a printer from a group of users using a login script or a scheduled event. This example adds an.
Hi guys, wondering if someone can help me out here for a second.. trying to write a VBScript that will add all shared printers from a given print server, to a local Windows XP Workstation. Sounds easy enough, except in this siutation when being executed from the Windows XP Workstation, the number of printers, and the the names of the printers on the Print Server would not be known. This is because we have thousands of PCs with hundreds of print servers across the country.
My question is, if I request input from the user (to get print server name), can I add ALL ('*') the printers on that print server to the PC I'm executing the script from? I know you can do it by specifying the printer name to add in the script, but the script wont know the printer name.
Any help is appreciated thanks.
-->My question is, if I request input from the user (to get print server name), can I add ALL ('*') the printers on that print server to the PC I'm executing the script from? I know you can do it by specifying the printer name to add in the script, but the script wont know the printer name.
Any help is appreciated thanks.
If your deployment scenario requires more than installing the driver package on the test computers, you can choose to run your own custom command scripts upon installation.
Prerequisites
![Script to add network printer windows 10 Script to add network printer windows 10](/uploads/1/2/6/3/126304819/603242216.png)
- Driver package that is test signed and ready to install. You must first create and build your driver and then create a driver package for installation. For more information, see Building a Driver and Creating a Driver Package.
- Test computers that are configured and provisioned for deployment. See How to test a driver at runtime using Visual Studio.
Instructions
Step 1: To run your own custom command scripts upon installation
From the project property pages for your driver package, you can configure whether you want to automatically deploy a driver package on a test computer. You can also run a custom installation script from these pages. You can choose to deploy the driver automatically whenever you build the driver solution in each configuration. For more information about deployment, see Deploying a Driver to a Test Computer and Deployment Properties for Driver Projects.
- Open the property pages for your driver package project. Right-click the driver project in Solution Explorer and select Properties.
- In the property pages for the driver package, click Configuration Properties, click Driver Settings, and then click Deployment.
- Click Enable deployment and then select the test computer to use.
- Click Custom Command Line. In the box, type custom command scripts that you want to run upon installation.
- In the Additional Files text box, add the command script and other installation files to be copied to the test computer. When the driver is deployed, the additional files are copied to the %Systemdrive%drivertestdrivers folder on the remote computer.