Follow

Allow users to maintain default printer when connected from LAN, and use ThinPrint to redirect printer to View Client when connected from WAN

Product: ProfileUnity-FlexApp

Product Version: 5.5+

Expires on: 365 days from publish date

Updated: June 3, 2015

 

Problem:

Allow users to maintain default printer when connected from LAN, and use ThinPrint to redirect printer to View Client when connected from WAN.

 

Symptoms:

n/a

 

Possible Resolution(s):

ProfileUnity does a wonderful job maintain the correct default printer.  Unfortunately when ProfileUnity and ThinPrint coexist on the same machine, ThinPrint comes in later and undo the default printer setting restored by ProfileUnity and always redirect the printer, breaking default printer continuity in between sessions.  Normally we recommend disabling ThinPrint in VDI and let ProfileUnity to be the sole manager of printers.  However when the user connects to View desktop and needs client's local printer redirected to VDI, you need ThinPrint.  The following setting may allow you to maintain default printer when connected from local LAN in office but allow ThinPrint to redirect printer when connected from WAN or VPN without using separate pool.

  1. In ProfileUnity Management Console, create a new filter under Filter Management like the following for internal users:
    2015-06-03_16_23_08-ProfileUnity.png

    Set aggregate to "OR"  so any matched condition will return true.  The condition we want to check is View Client IP.  This will allow us to determine if the connection is from internal or external network.  Add a condition or multiple conditions to cover all your internal network IP ranges.  You may use Begins to IP address begins with a block of subnetwork (e.g. 10.0 to cover everything under 10.0.x.x network), or Range to cover a range (e.g. 10.1.0.1-10.1.0.254 to cover everything on 10.1.0.x).  Save the filter.

  2. Modify your configuration in Configuration Management.  Add the following four settings to Application Launcher with filter we just created:

    2015-06-03_18_44_11-ProfileUnity.png

    Setting # 1:  
    Filespec: %systemroot%\System32\sc.exe
    Arguments: stop tpautoconnsvc

    Setting # 2:
    Filespec: %systemroot%\System32\sc.exe
    Arguments: stop tpvcgateway

    Setting # 3:
    Filespec: %systemroot%\System32\sc.exe
    Arguments: stop spooler

    Setting # 4:
    Filespec: %systemroot%\System32\sc.exe
    Arguments: start spooler

    And leave all other config in the setting as default

  3. Update the configuration to save the changes

  4. Download the new configuration file and replace the existing one in Netlogon\ProfileUnity or your custom INI location 

When the user connects to View Desktop from internal network, ProfileUnity will stop ThinPrint services and restart the spooler which will undo ThinPrint redirection and use the restored default printer setting.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.