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. However, 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.
- In ProfileUnity Management Console, create a new filter under Filter Management like the following for internal users:
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. - Modify your configuration in Configuration Management. Add the following four settings to Application Launcher with filter we just created:
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 - Update the configuration to save the changes
- 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.
Product: ProfileUnity-FlexApp
Product Version: 5.5+