Link to home
Start Free TrialLog in
Avatar of ScottDriver
ScottDriver

asked on

Windows Printer - Add user to security via script

I need the means to via vbscript add a user to the security tab of a windows printer.
We are on server 2003 so I can't use the GetSecurityDescriptor method. I've found the SetPrinter and PRINTER_INFO_3 function, but I have no idea how to call it from within my script. I'm not much of a programmer here, so any help is appreciated.

OR if you've got an alternative idea at how to accomplish this, I'm all ears.

OH, and it's a pretty urgent issue, so I REALLY appreciate the help.
ASKER CERTIFIED SOLUTION
Avatar of Gastone Canali
Gastone Canali
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I know it sounds like a cop-out but you really should not be adding users to any security tab. Security is much easier to manage id you assign the security to a group and then add the users to the group. That way you can grant and revoke permssions with ease.
Avatar of ScottDriver
ScottDriver

ASKER

KCTS - I understand that practice/theory, but it doesn't apply here. We're working on an "interesting" solution where I need to grant access dynamically to only a single user at a time.
Regardless... user, group, donkey... I need a way to set the acl's on a printer via vbscript.
canali, you're officially the hero of the week!