Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 642
  • 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
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
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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