From: Oliver Kuhl on
Hi,

I've got two problems with printer management in .NET:

Problem no. 1:
I want to set the rights PRINT and MANAGE to a special user. I could'nt find
a class in .NET to do this, so I use System.Diagnostics.Process and subinacl
from Windows 2003 Ressource Kit.
The following commands work fine:
subinacl /printer muster /grant=username=P -> user can print documents
subinacl /printer muster /grant=username=M -> now the user can manage the
printer; he is able to delete jobs; but the right to print is automaticly
revoked

subinacl /printer muster /grant=username=PM -> Windows sends the message
"Syntax error"
How can I set the rights? Is there a better way to do this?

Problem No 2:
We want to manage all drivers on the Win2003- printserver. If there is a
printer connected to LPT1 or USB on the XP- Client, we declare a local
printer with the driver "Generic Text Only" We install Unix Printservices
and start the TCP/IP printservice. On the printserver we create a LPR- Port
and a corresponding queue with the correct, actual driver.
Is there a better way to print from Windows 2003 to XP, using the driver
from the Win2003- machine?
How can I create lpr ports on Windows 2003 with .NET? I did't find a way, to
do this. The class PRNADMINLib.PrintMaster and PrintMaster.PortAdd create
TCP/IP- Ports with LPR- protocol, but the TCP/IP Printservice, running on
the client does not receive any job, tespages remain in the queue of
Win2003- Server.

Thank you for your help!

Regards,
Oliver