Printing using the Runas command in windows 2000

I have an Application, which i need to run using a user different of the current user, i have tool that use run as.

The application works fine, and access the database and network resources without a problem.

But when i try to print i don't have access to the printers, i get an error saying that there is no default printer.

I already logon with that user and configured the printers, but still doesn't work.

Is there a way to solve this?
LVL 8
wguerramAsked:
Who is Participating?
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.

Christopher McKayMicrosoft Network AdministratorCommented:
have you tried using the "profile" switch with the runas command?

Example:

runas /profile /env /user:<domain>\<username> "path\subdirectory\executable.exe"

Hope this helps!

:o)

Bartender_1
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
wguerramAuthor Commented:
Hi Bartender, thanks for the answer, but i hace another problem also. this is what happes.

I have a domain user with administrative privileges, my application runas the administrator, although i am login with a specific user the application always run with the administrator user.

Only this user has access to the network resources, no other users have it.

 My Application export data to excel and opens excel automatically using automation, my problem is that excel runs also under the adminitrative account, i want to run excel under the current user not the impersonated user.

The problem still now is that the apis i have found requires the user password, i only know the user. is there some api or command that runs an application without specifying the password.
0
Christopher McKayMicrosoft Network AdministratorCommented:
unfortunately, I don't know of anything that will run as a user without having to input their password.
I'll keep looking, and hope that either I find something useful, or someone ewlse has the answer for you.

:o)

Bartender_1
0
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
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.