Configuring Script Actions
When you create a custom printer filter for specific printer criteria, you have the option of running a script when the conditions of the filter are met. Script notifications are also defined in the previously described Notifications tab of the printer filter's Properties dialog box.
Setting script notifications can be useful for resolving printer problems and troubleshooting. For example, you can automatically run a script to restart the Print Spooler service on a print server when its printers go offline. You can also automatically run a script that prints a test page or that notifies your internal monitoring system of a potential problem. Scripts can be written in VBScript or any scripting language available on the computer. The script must be on the computer that is running Print Management, and the script should be running with suitable credentials and have the permissions needed to accomplish what you want the script to do.
An example of a command that you might use in a script to start the Print Spooler service is the net start spooler command. For sample scripts that you can use and customize to manage print queues, see the list in the section titled "On the Companion Media" at the end of this tutorial. You can also find additional scripts on Microsoft TechNet at http://www.microsoft.com/technet/scriptcenter/scripts/printing/default.mspx.
In this tutorial:
- Managing Printing
- Enhancements to Printing in Windows 7
- Printing Enhancements Previously Introduced in Windows Vista
- Additional Printing Enhancements in Windows 7
- How Printing Works in Windows 7
- Understanding XPS
- Understanding the Windows Printing Subsystem
- Understanding Printer Driver Isolation
- Understanding the Print Management Console
- Enhancements to the Print Management Console in Windows 7
- The Print Management Console
- Adding and Removing Print Servers
- Configuring Default Security for Print Servers
- Adding Printers Using the Network Printer Installation Wizard
- Creating and Using Printer Filters
- Creating and Using Driver Filters
- Managing Printers Using Print Management
- Configuring Properties of Printers
- Publishing Printers in AD DS
- Managing Printer Drivers
- Configuring Printer Driver Isolation Mode
- Configuring Printer Driver Isolation Mode Using the Print Management Console
- Configuring Printer Driver Isolation Mode Using Group Policy
- Troubleshooting Driver Isolation
- Exporting and Importing Print Server Configurations
- Printer Export Files
- Performing Bulk Actions Using Print Management
- Client-Side Management of Printers
- Installing Printers Using the Add Printers Wizard
- Searching for Printers
- Installing Printers Using Point and Print
- Using Devices And Printers
- Using the Color Management CPL
- Managing Client-Side Printer Experience Using Group Policy
- Configuring the Add Printer Wizard
- Disable Client-Side Printer Rendering
- Configuring Package Point and Print Restrictions
- Extending Point and Print Using Windows Update
- Deploying Printers Using Group Policy
- Preparing to Deploy Printers
- Deploying a Printer Connection
- Limitations of Deploying Printers Using Group Policy
- Migrating Print Servers
- Migrate Print Servers Using Print Management
- Migrating Print Servers Using PrintBRM
- Monitoring and Troubleshooting Printers
- Configuring E-Mail Notifications
- Configuring Print Server Notifications
- Configuring Script Actions
- Configuring Detailed Event Logging