Windows 7 / Getting Started

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.

[Previous] [Contents] [Next]

In this tutorial:

  1. Managing Printing
  2. Enhancements to Printing in Windows 7
  3. Printing Enhancements Previously Introduced in Windows Vista
  4. Additional Printing Enhancements in Windows 7
  5. How Printing Works in Windows 7
  6. Understanding XPS
  7. Understanding the Windows Printing Subsystem
  8. Understanding Printer Driver Isolation
  9. Understanding the Print Management Console
  10. Enhancements to the Print Management Console in Windows 7
  11. The Print Management Console
  12. Adding and Removing Print Servers
  13. Configuring Default Security for Print Servers
  14. Adding Printers Using the Network Printer Installation Wizard
  15. Creating and Using Printer Filters
  16. Creating and Using Driver Filters
  17. Managing Printers Using Print Management
  18. Configuring Properties of Printers
  19. Publishing Printers in AD DS
  20. Managing Printer Drivers
  21. Configuring Printer Driver Isolation Mode
  22. Configuring Printer Driver Isolation Mode Using the Print Management Console
  23. Configuring Printer Driver Isolation Mode Using Group Policy
  24. Troubleshooting Driver Isolation
  25. Exporting and Importing Print Server Configurations
  26. Printer Export Files
  27. Performing Bulk Actions Using Print Management
  28. Client-Side Management of Printers
  29. Installing Printers Using the Add Printers Wizard
  30. Searching for Printers
  31. Installing Printers Using Point and Print
  32. Using Devices And Printers
  33. Using the Color Management CPL
  34. Managing Client-Side Printer Experience Using Group Policy
  35. Configuring the Add Printer Wizard
  36. Disable Client-Side Printer Rendering
  37. Configuring Package Point and Print Restrictions
  38. Extending Point and Print Using Windows Update
  39. Deploying Printers Using Group Policy
  40. Preparing to Deploy Printers
  41. Deploying a Printer Connection
  42. Limitations of Deploying Printers Using Group Policy
  43. Migrating Print Servers
  44. Migrate Print Servers Using Print Management
  45. Migrating Print Servers Using PrintBRM
  46. Monitoring and Troubleshooting Printers
  47. Configuring E-Mail Notifications
  48. Configuring Print Server Notifications
  49. Configuring Script Actions
  50. Configuring Detailed Event Logging