Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I noticed that in my Win2008 Server machine, if I start an app by right clinking as selecting "run as administrator", that it can't print anything. But if I run the app normally, it prints just fine.

For example if I open notepad, enter some text, and print, the document prints as expected. But If I right click on notepad in the run menu, enter some text, and print, the document is never printed, nor is any error message shown.

For what it's worth, it is a network printer. I'm am logged in as an administrator.

My question is why and how would running as an administrator effect whether or not an app can print?

share|improve this question
    
Is there a UAC elevation prompt in there? If so, what do you type, or click? In other words: are you entering in different credentials? –  Ian Boyd Dec 15 '09 at 20:48
    
Yes, I am entering the admin credentials to elevate the process. –  epotter Dec 16 '09 at 13:06
add comment

1 Answer

up vote 2 down vote accepted

The printer is mapped in the context of the currently logged in user. The application is run in the context of the Administrator account, so it does not have access to the printer.

This behavior also manifests itself by mapping a drive with a script on it that calls another file on that network drive and running it as Administrator. It will fail, since the drive is not mapped in the Administrator user's context, causing it to appear as if it does not exist.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.