Access Denied Error.

M

MaX

Hello folks.

This is my stuff.
I made up a VBS, and then a compiled VB EXE to make automated
installation of printers in a system during logon phase.

In facts, the script should run when a user (who is member of Local
Group "Power Users") logs on over the network.

Of course, to install printers on the system, the user should have
Administrative rights to do that, so I use in the logon script a runas
statement that launches the EXE with administrative rights.

What I reach is an ACCESS DENIED in the ObjPrinter.Put_ although I see
in the Task Manager, the process binded with Administrator....

If i log off and logon again with any local administrator, I can see
this working.

Why runas seems not to work properly although it makes the process to
run as Administrator?

Shall I forget anything during this process?

Thanks in advance for any suggests.

I'll post the code on request.

Bye
Alessio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top