VB.Net / C# grant management-right for printers

I need a code snipet in VB oder C# (Visual Studio 2010) to grant print-management rights to users on windows 7 workstations so users can configure additional printer settings on their own (local printers, mostly USB-Devices, installed with WDS in PNP-Mode).

We have startup-script which is written in VB 2010. This program runs with local system privileges and it should grant the print management right for every local pnp-installed printer on the local workstation.

Can you please help? We've tested with WMI oder PowerShell but this won't work as espected.

We can't use subinacl.exe or setacl.exe in our environment.

Many thanks for your help.

MichaelDittmarAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daz_1234Commented:
This may be worth a look.  The link here is to a Powershell script that contains all the methods that you should need to set and apply permissions for local printers.

It's a shame that the text is Latvian, but programmatically it is possible to follow the function calls, and it may put you on the path to VB.Net or C# equivalents.

Hope this helps,
Daz

http://www.sysadmins.lv/PermaLink,guid,22c0550d-0c46-44ca-97ce-2b0bccbb51de.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.