Solved

runas

Posted on 2009-07-15
10
620 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
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 …
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

734 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