Solved

runas

Posted on 2009-07-15
10
609 Views
Last Modified: 2012-05-07
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
Comment
Question by:DGWOLF
  • 5
  • 3
10 Comments
 
LVL 2

Expert Comment

by:WimBartels
ID: 24858072
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
 
LVL 2

Expert Comment

by:WimBartels
ID: 24858080
do you use a batch file to start this program.
there are multiple options to script the default printer setting


KR

Wim
0
 
LVL 2

Expert Comment

by:WimBartels
ID: 24858087
Give me some more info ,

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

0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:DGWOLF
ID: 24859125
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
 
LVL 2

Expert Comment

by:WimBartels
ID: 24859157
do you start the program manually ? by typing runas /user: etc ?
0
 

Author Comment

by:DGWOLF
ID: 24859283
Yes. It's a batch file.
0
 
LVL 2

Expert Comment

by:WimBartels
ID: 24859293
is it a network printer or a local printer ?
0
 

Author Comment

by:DGWOLF
ID: 24860462
Both. I need to select one or another doing it the default printer in windows.
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 500 total points
ID: 24861895
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question