Solved

runas

Posted on 2009-07-15
10
593 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
Comment Utility
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
Comment Utility
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
Comment Utility
Give me some more info ,

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

0
 

Author Comment

by:DGWOLF
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Expert Comment

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

Author Comment

by:DGWOLF
Comment Utility
Yes. It's a batch file.
0
 
LVL 2

Expert Comment

by:WimBartels
Comment Utility
is it a network printer or a local printer ?
0
 

Author Comment

by:DGWOLF
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now