I implement a LOT of customers on our hosted solution every year, here are some tips we’ve learned along the way that may be helpful to you.

Some Background:  Blue Link provides hosted Enterprise Resource Planning (ERP) software either as an on premises or as a hosted solution.  Lately, a lot of people are choosing the hosted solution so I’ve implemented a lot of hosted customers, both with full remote desktop sessions and using the Windows Server 2008 R2 RemoteApp feature as well.

In this blog entry I cover the top 3 requests I get:

  1. How to make everything bigger?
  2. How to make printing Invoices and other documents a LOT faster?
  3. How to copy files to/from the hosted environment?

How to make everything bigger:

So you bought yourself a nice high resolution computer monitor but now you find yourself squinting to see the text on the hosted applications?  If so you may want to consider changing the Dots Per Inch (DPI) setting in your remote desktop session. 

Before you begin, your server techs first have to make sure that this Microsoft KB article has been applied to your server: http://support.microsoft.com/kb/2726399. If you’re a Blue Link customer reading this, we’ve already applied that patch to your hosted servers, so you can skip that step.

Follow these steps to change the size:

This particular setting has to be changed in the “full” remote desktop, but once changed there, it will also affect any apps you run in the Remote App mode as well.

  1. Close any copies you may have open of the Blue Link and other RemoteApps running from the Remote Desktop environment (Outlook, Excel, Word, etc).
  2. Connect to the remote desktop session using the “full” remote desktop client. When you connect you should be able to see the desktop on the server, and a different start menu.
  3. Right-click on the desktop, and choose the “Screen Resolution” option:
    clip_image001
  4. Click the “Make text and other items larger or smaller” link:
    clip_image002
  5. Choose the “Medium – 125%” option:
    clip_image003
  6. Click Apply
  7. Click Log off Now:
    clip_image004

The next time you re-connect everything will be larger, and potentially easier to read.

This setting will be user-specific, so some users can choose to zoom their screens, others can leave them as is.

How to make printing a LOT faster: Mapping Printers through the Internet

Today I was at a client site where the printing of a single invoice was taking 15 seconds… printing an invoice should take anywhere from 2 to 10 seconds depending on how many lines it contains, but in general a 15 line invoice should print in about 5-7 seconds.

You may need some technical assistance from your network IT staff and from Blue Link support to get this particular tip implemented, but here’s what you should know as a user of the system.

There are two ways to get a print job from the hosted server to a printer sitting in your office.

  • Option 1: Automatically mapped RDP printers.
  • Option 2: Printing directly from the hosted server to the printer in your office with a direct connection across the Internet.

With Option 1: Here’s a rough description what actually happens:

Step 1: the document is first printed to a file on the server.

Step 2: the file is transmitted to your local computer through the remote desktop session.

Step 3: your local computer prints that file to the printer that was mapped through the connection.

With Option 2: Here’s what happens.

Step 1: The file prints DIRECTLY to the printer in your office – the data being streamed across the Internet from your hosted server, directly to the printer.

Steps to Configuring TCP/IP Printing directly across the Internet

To get option 2 to work, you need a few things in place:

  • The printer MUST contain a network card/adapter and be connected to your internal network with a fixed IP address.
  • Your Internet Router (the device that gets you an Internet connection) must have a “Port Forwarding” feature. (Optional: for a more secure solution, you may want a more expensive router that supports source IP filtering to restrict the inbound communication from the Blue Link external IP address).
  • Your business has to have a fixed External IP address, or Optionally, you can purchase a Dynamic DNS subscription from a company such as DynDNS.org.

With those items in place, your tech configures a TCP/IP port forwarding rule to forward some external port to the specific internal port of the printer on your network.

Almost every network connected printer by default will listen on port 9100.

So if your office has two printers (say, one in the front office and another in the warehouse) then they might look like this:

  • IP: 192.168.0.51 – Front Office Printer – Listening on Port 9100
  • IP: 192.168.0.52 – Warehouse Printer – Listening on Port 9100

To make these work across the Internet since you only have one external IP address (Say 11.22.33.44) you’ll need to expose two DIFFERENT external ports, each one mapped to the correct internal IP address. So for the example given above, that mapping on the router will end up looking like this:

External IP Address (Internet)

External Port
(Blue Link will connect to this)

Name

Internal IP Address (In your Office)

Internal Port

11.22.33.44

9101

Front Office Printer

192.168.0.51

9100

11.22.33.44

9102

Warehouse Printer

192.168.0.52

9100

Test that the Printer Mappings are Valid with Telnet Test

Once that is done, prior to attempting to map the printers on the hosted server, your technician should test that the port mapping rule is working by using a telnet command from a computer located outside of your office to test the inbound connectivity.

In the example above, the tech would run this command:

Telnet 11.22.33.44 9101

GOOD: They should end up with a Black Screen like this:

clip_image005

BAD: If the window comes up with an error like this:

clip_image006

With the text “Could not open connection to the host, on port xxxx: Connect failed” then the port is not opened correctly yet and your tech still has work to do to fix it before anyone at Blue Link would be able to configure the printer.

Adding the Printers on the Hosted Server

This step must be done by a server administrator.  Administrative Privileges will be required to do these steps.  Make sure you provide the server administrator with the following information:

  • Make and model of your printer.
  • External IP Address
  • Published External Port

The server technician can now add a direct printer mapping on the server of your particular printer directly to your listening printer.  Here’s how they do that:

image

The steps shown here are for Windows Server 2008 R2, but are very similar in Windows Server 2012.

There are really two steps to configuring this.  The first step is to create a new local TCP/IP printer port for the destination IP and port, and then the second step is to add the actual printer.

PowerShell method for adding the port

The fastest possible way to add the external port is with PowerShell.  Even if you hate PowerShell, this is still by far the FASTEST way to get this port added.  here are the steps:

$hostAddress = "11.22.33.44"
$portNumber = "9101" 
$computer = "COMPUTERNAMEHERE"
 
$wmi= [wmiclass]"\\$computer\root\cimv2:win32_tcpipPrinterPort"
#$wmi.psbase.scope.options.enablePrivileges = $true
$newPort = $wmi.createInstance()
 
$newPort.hostAddress = $hostAddress
$newPort.name = "Printer" + $hostAddress + ":" + $portNumber
$newPort.portNumber = $portNumber
$newPort.SNMPEnabled = $false
$newPort.Protocol = 1
$newPort.put()

In the script above, you obviously have to change the IP address, port and computername to be the correct values in your environment.  The computername is the name of the hosted computer to which you’re adding this port – not the name of the computers at the customer’s site.

Using this Powershell technique to add the port, you’ll end up with a port that’s named: “Printer11.22.33.44:9101” in the example shown.

The real advantage to this PowerShell method is that it bypasses Windows having to scan the ports.  And on servers with a lot of mapped printers, the wizard approach shown next can take several minutes to run.

GUI Method to add the TCP/IP port and printer

  • In the Devices and Printers folder, click Add a printer.
  • Choose the “Add a local printer” option – DO NOT select the network option:
    image
  • Choose the Standard TCP/IP Port option:
    image
  • In the Hostename or IP Address box, put either the DNS name of the External IP address you’ve exposed (that’s the preferred solution if there’s any chance of the IP address changing in future), or enter the external IP address at the destination network.  You can confirm the external IP by having a user on that network visit a site like www.ipchicken.com:
    image
    • In the Port name box, put something you’ll recognize.  Personally, I always include the external Port that I’ll be connecting to but that’s not a requirement – just helps you to keep things straight.
    • Here’s another sample of that same screen with an IP address instead:
      image
  • Click Next and Windows will waste your time waiting for a scan of the default TCP/IP printer port of 9100:
    image
  • When that scan completes, you’ll have the opportunity to change this to the CORRECT port:
    image
  • Enter the correct External Port number:
    image
  • Click OK
  • From this point on you’re just following a regular printer install routine. Pick your printer from the list, or do the have disk thing to get the driver you downloaded for the specific make/model of printer loaded.
  • Word to the wise: HP Printer Drivers are HORRIBLE in remote desktop environments.  In most cases you’ll have to download the HP Universal Driver – assuming you can find it … sometimes it takes some digging, and sometimes you’ll have to cheat to get to the actual printer driver files. If when you try to extract the universal driver you get “friendly” printer driver installer start running move that Window out of the way and go look on the root of see for a new folder with a GUID or some other unique name that just got created.  That folder has the less than helpful GUI installer you see but also contains the actual drivers folder you need – go copy that out of that folder and put it somewhere else.  When you cancel the GUI it will auto-delete this temp folder so you’ll need the files somewhere else if you got stuck with that version of the Universal Driver Download. 
  • When you’re done the wizard you should be able to successfully print a test page.

Change your Default Printer AWAY from the Auto-Mapped Printer!

Once the printer is mapped and working, the next time you connect your computer, simply change your default printer to the pre-defined printer instead of using the auto-mapped printer.

In the test I did today, printing time for an invoice for this customer went from approximately 15 seconds to approximately 4 seconds. A significant improvement.

Bonus tip: Turn off mapping of Local Printers completely to get the best possible performance:
clip_image007

  • If you can map all the printers that the user needs from their office, then turning of Printer mapping entirely will speed up the entire connection because there won’t be that delay after initial connection while it enumerates and maps the local printers.  Turning off the mapping also prevents the default printers from changing.

How to Turn off Printer Mapping for RemoteApp icons.

If you’ve got RemoteApp .rdp shortcuts on the customer’s machines, then if you open the .rdp file in notepad (not the .lnk pointing at the .rdp, the actual .rdp file), you can change the
image

image

redirectprinters:i:1 setting (which means map printers) to

redirectprinters:i:0

How to copy files to/from the hosted environment

Did you know that you can copy and paste files to or from the hosted environment? When connected to the full remote desktop, if you open the Computer icon you should be able to see your local disk drives mapped:

clip_image008

If you do not see your local disks, then you have to enable drive mapping in the remote desktop connection software:

clip_image009

clip_image010

Note: If you’re using RemoteApp, then you’ll need to edit the .rdp file by editing the file in notepad and then changing the redirectdrives option to 1:

redirectdrives:i:1

Advertisements