Printing from Meditech

We have a application that we use to run our hospital, Meditech.  We access it via Proprietary Telnet client specifically developed by Meditech.
I specifically need to print reports that can not be scheduled.  Every morning I print a series of reports for some of the departments. The printer is local to the PC at work.

Here is the issue:  I log into a pc at work via VPN (Virtual Private Network) using Microsoft's RDP (Remote Desktop Protocol).  As long as I first log into the PC while at work and print some reports, everything works fine. I can then go home and RDP into the PC and get the console desktop and print more reports. Works !

What does not work: If the PC at work is power cycled and then I RDP in and print reports, nothing ever shows up !?  I then physically go into work log-on to the console and print, Works.  I can now go back home or RDP in and print (does not matter where I cam, just not on the console) and print, works ?!

Why do I first have to log-in to the physical console and print before I can log-in via RDP and print ?
What does logging in via the console initialize that then allows me to print via RDP ?

Any help is appreciated.
sidwelleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bryant SchaperCommented:
Totally going to shoot from the hip, but had you tried using the /admin switch when you login so you get the console session.  Is printer redirection off too?

Also I seen issues printing to lpt Ports from dos apps.
0
sidwelleAuthor Commented:
/Admin  - Yes.
redirection Off  -- No.

Logged in and tried again, no printing !!
0
Bryant SchaperCommented:
Local or network printer. Do other apps print?
0
What were the top attacks of Q1 2018?

The Threat Lab team analyzes data from WatchGuard’s Firebox Feed, internal and partner threat intelligence, and a research honeynet, to provide insightful analysis about the top threats on the Internet. Check out our Q1 2018 report for smart, practical security advice today!

sidwelleAuthor Commented:
Local Printing to a IP Port.

Pinter test does print test page.
0
Bryant SchaperCommented:
Can you test over VNC to see
0
Bryant SchaperCommented:
If it rdp specific?
0
sidwelleAuthor Commented:
VNC: No, that's not one of our supported solutions.

I need to stick with RDP.
0
Bryant SchaperCommented:
Sense it works post login remotely, could it be an environmental variable that is set that conflicts with an rdp session?  Ie clientname vs computer name
0
sidwelleAuthor Commented:
Is there an Environment variable that is not set/or changes until the console logs in ?

I guess I would need some time to test this.
0
sidwelleAuthor Commented:
I compared the environment variables of two different machines: (both have our Enterprise 7 image)
1.)  First one that I could print from RDP, because I had already logged into the console at some previous time.
2.)  Second one that I had not logged to the console before, and can not print via RDP.

The only environment variable that was different was "UATDATA" on the 1st machine, not sure what this is for, but don't think its has anything to do with my issue.

Did some more testing: Logged into the pc that I have been successfully printing from with another account (not the one I usually RDP with or Log-on to the console with)  and again could not print.
Repeated this with and w/o the '/admin' arg for RDP. Nothing either way.
But, I did see for the first time an error msg,  "Failed to Retrieve Spool File Report Data" on the printer !
That's a first !

Just to proof my testing logged back in with the normal account and the '/admin' arg, I was again able to print.  Logging in from the console is leaving a setting or attribute  behind that is not set when logging in via RDP.

Thanks for reading ?!
Again, any help is appreciated.
0
Bryant SchaperCommented:
So it does work with /admin?

If that is the case, I would think it is how the client works with Windows 7, maybe even UAC.  When you don't use the admin switch you get a new session 1, 2, 3...  However the /admin switch logs into the console session 0, even if nobody is logged in, without the /admin switch you will not get the console session.
0
sidwelleAuthor Commented:
That would be the issue, if you login from RDP with /admin switch, yes you get session 0. But for some reason it looks different to the app.  I was able to reproduce the issue several different ways.  One thing that is interesting is that when you follow the following steps:
1. Login to the console with account A. and print.  Works.
2. Login via RDP with /Admin switch with account A. and print. Works.
3. Login via RDP /Admin or Console with account B. and print. Fails
     (msg shows up on printer "Failed to retrieve spool file report data")

What's up with That ?!
0
Bryant SchaperCommented:
not sure, did you logout of account a first?  Maybe a lock of some form
0
sidwelleAuthor Commented:
No, did not log-out. Just closed the RDP connection w/the usual msg "Your stuff will continue to run ..."

I might have some time to test some more scenarios tomorrow.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sidwelleAuthor Commented:
Bryant, Thanks for all your comments and having to wait so long on this question.

I have been working with Meditech on the issue and they have a work-around for multiple users on one machine trying to print. They have developed a service named "Meditech Document Manager" and when set to run as a service (w/ right privileges) will allow printing from any session on the machine.

But what this does tell is that the Admin session on a windows box is not always what you think it is.

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Remote Access

From novice to tech pro — start learning today.

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.