Jump to content
Sign in to follow this  

Install Printer With Runas

Recommended Posts



I've got a little Problem. B)

I am at a custumer and he uses xp-clients with restricted rights.

Now a standard user should be install a printer without knowing the admin-pw.

I've tried to run the wizard with runas but it seems, that another prozess will be used to install the drivers. :whistle:

I've tried to start following with runas:


; Set the RunAs parameters to use local adminstrator account

RunAsSet("administrator", @Computername, "pass")

; Run rundll as admin

RunWait("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")

; Reset RunAs



Does anyone know which second prozess will be started and how i can fix that problem?

Thx for every solution! :angry:

Share this post

Link to post
Share on other sites

:whistle: Great - this looks good - i'll have to test it!



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.