Using the command line

The Printer Session Manager can be managed from the command line

Syntax

PrinterService.exe [-Service] [-UnregServer] [-Auto] [-Account [<domain>/<user>]] [-Pwd [<password>]] [-Profiles [<profile_directory>]] [-Help]

Parameters

-Service
Register service. [1]
-UnregServer
Unregister service. [1]
-Auto
The service is started automatically by the service control manager when the system starts. Used with –Service.
-Account [<domain>/<user>]
The name of the account under which the service should run. Used with -Service and -Pwd. [2] [3]
-Pwd [<password>]
The password to the account name specified by the account parameter. Used with -Service and - Account. [2]
-Profiles [<profile_directory>]
The directory containing mainframe printer session profiles. [1]
-Help
Displays the Help.
Notes:
  1. Administrator rights are required.
  2. Failed if logon failed for the provided account and password.
  3. The account must be granted “Log on as a service” rights:

    http://technet.microsoft.com/en-us/library/cc794944(v=ws.10).aspx

    http://support.microsoft.com/kb/266280