Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

runas

Hello,

I am running a program with runas for security reasons. This program print to the default user printer, but if i change the default printer when the program is running, it doesn't print to the new default printer. Do you know how to do this, or a third company program that works like runas and use the local user printers?

Thanks.
0
DGWOLF
Asked:
DGWOLF
  • 5
  • 3
1 Solution
 
WimBartelsCommented:
probably because you change the default printer for the account and not for the account you use to RUNAS ?

A default printer is user (profile) based.
so if you change the printer for the logged on user it will not change the default printer
for the Priviledged account

Hope this helps


Wim


 
0
 
WimBartelsCommented:
do you use a batch file to start this program.
there are multiple options to script the default printer setting


KR

Wim
0
 
WimBartelsCommented:
Give me some more info ,

Is is a network printer
how do you start the program etc...

0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
DGWOLFAuthor Commented:
The program that i execute with runas doesn't ask for the printer to use, and always use the default printer. We change the default printer to assign the destination printer, but the program doesn't change it.

Thanks.
0
 
WimBartelsCommented:
do you start the program manually ? by typing runas /user: etc ?
0
 
DGWOLFAuthor Commented:
Yes. It's a batch file.
0
 
WimBartelsCommented:
is it a network printer or a local printer ?
0
 
DGWOLFAuthor Commented:
Both. I need to select one or another doing it the default printer in windows.
0
 
johnb6767Commented:
If you have logged in locally as the user that is being invoked via teh RunAs, and set the needed printers, then while the app was launched via RunAs, the printers should be available...
Whats your full syntax of the RunAs command?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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