[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 639
  • 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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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