[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

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?
  • 2
1 Solution
Christopher McKayCommented:
have you tried using the "profile" switch with the runas command?


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

Hope this helps!


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.
Christopher McKayCommented:
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.



Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now