Problem:
Default printer resets every logon with Portability and ProfileDisk when used together.
We have observed in certain cases when a user sets a printer, it gets reset every time in non-persistent environments, although logs do not show any error setting the printer. This situation happened only when ProfileDisk and Portability settings were used at the same time.
Resolution:
While there are 2 sections to this resolution, you can try Section B only then if needed institute both.
SECTION A - Delete the default printer registry setting from the ProfileDisk
1. Create a new configuration that will run first (before your primary configuration) based on the name (alphabetical /numerical order). You could call it for example "1-DeleteDefault", so it will run first because it starts with a number 1.
2. Edit that new configuration, and add a "Registry" rule with the below settings.
Action - Delete Key
Uncheck Process Action Post Login
Hive - HKEY_CURRENT_USER
Key - Software\Microsoft\Windows NT\CurrentVersion\Windows\Device
Data Type REG_BINARY
Description - remove - User Default Printer - 6.0
SECTION B - Create a script to automatically delete the manifest files from network.
First you need to find the name of the manifest files to delete. To do that you can check the existing Portability settings for your default printer and archive save location. Open your primary configuration and navigate to the "Printers" section. Click the "Advanced" bluish tab at the bottom of the window. There you will find a "UID" section. This is how the manifest file will be called. Take a note of that, and write down the location (the UNC path right above it).
For an example, let us assume the location is
\\fileserver\share\%username%
and the UID is
Defaultxyz
With that information create a "User Defined Script" in your 1-DeleteDefault configuration.
Execute: After ProfileUnity at Logoff (Post-Logoff)
Type: Executable
File: %systemroot%\system32\cmd.exe /c del \\fileserver\share\%username%\Defaultxyz.7z.manifest
Make sure to deploy the configuration.
Product: ProfileUnity
Product Version: 6.8.x