COMPCALL IT Management

Technology Solutions to Make Your Life Easier
  • About
    • Testimonials and Praise
    • Careers
  • Web Services
  • Business
    • Retainer Plans
    • Managed Internet
    • Managed Anti-Virus
    • PROsupport
    • Solutions for Non-Profits
  • Residential
    • Flat-Rate Cleanup Promo
  • Online Services
  • Support
    • Remote Session
    • Blog
  • Contact Us: 800-761-6651

Fix: Remote Desktop changes Default Printer

Rob | March 22, 2009 | 7:07 am

I often use Remote Desktop to connect into my home office computer from a laptop. I’m running Vista Business SP1 and have found that every time I log back on locally my default printer is no longer assigned. In fact, Windows has no printer assigned as default.

This leads to silly (and false) messages such as “Publisher cannot print. There is no printer installed.”

The problem is related to Remote Desktop and Printer Redirection. When you connect from a client your printer gets changed to the local printer on the client. When you connect back locally it is not re-establishing your previous default printer.

Microsoft allegedly is aware of the problem, but their workaround is to Turn off printer redirection or Manually reset the default printer each time. Nice one, guys.

My solution was a simple VBS script and Windows task scheduler. Using VBS you can set a default printer. Create a new text document with the following code in it:

Set WSHNetwork = CreateObject(“WScript.Network”)
WSHNetwork.SetDefaultPrinter “Brother HL-5250DN series”

Replace “Brother HL-5250DN” with the exact name of your printer as it appears in the Printers folder. Save this as updateprinter.vbs in your user directory. Test the script by changing your default printer and then double-clicking on the script. It should bounce right back.

Now start the Task Scheduler (Start -> All Programs -> Accessories -> System Tools) and click Create Task in the actions pane. Give the task a name and go to the Triggers tab and add a new trigger. Set the task to begin “On Connection to User Session” and make sure it’s just set to your username (other users may not have permission to access to your script). Next choose “Connection from local computer.”

new-trigger

Now you need to set an action to execute the script. Save your new trigger and go to the Actions tab. Add an action to “Start a Program” and browse to locate your script. Click OK. Finally, take a look at the Options and Settings tabs and configure to meet your needs. I recommend “Stop the task if it runs longer than 15 minutes” and executing regardless of AC power.

So what you’ve done is told windows to execute a script whenever you connect to your session locally. This script resets your printer back to usual. You could also use this to assign a specific printer when you’re logged in remotely and another for local sessions. Enjoy!

Categories
Uncategorized
Comments rss
Comments rss

« Going Paperless Part 2- Faxes New Website launched »

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • About
    • Careers
    • Testimonials and Praise
  • Business
    • Managed Anti-Virus
    • Managed Internet
    • PROsupport
    • Retainer Plans
    • Solutions for Non-Profits
  • Online Services
  • Residential
    • Flat-Rate Cleanup Promo
  • Support
    • Blog
    • Remote Session
  • Web Services
Recent Blog Posts

      We’re Hiring: Entry-Level Sales

      COMPCALL announces partnership with ConnectWise

      New Website launched

AVG Anti Virus 8.5



Now only $34.95