Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Impersonate vs RunAs user

0 views
Skip to first unread message

Boni

unread,
Oct 7, 2009, 12:04:01 PM10/7/09
to
I have to send some epl's commands to a shared printer. I would an asp.net
service doing this from my web server to a pc client wich has the shared
printer plugged.

If I exec my application like a console application it works, so like
running the service inside a cassini web server. Using IIS it doesn't work.
Off course in the first two cases the applications running with
administator's privileges so I tried to using the "Impersonate" script in
order to exec the commands with more higher privileges .
Despite this using the server's administrator account under IIS the service
doesn't work but if I use a domain's user account it works. ( the server is
outside the domain ).

I don't understand the difference executing code between using the
Impersonate or as a normal program.

Thnak's for your help.

0 new messages