Problem:
Printer Logic software is installing printers based on its own policy after user logins in to a desktop and the default printer is not being retained by ProfileUnity.
Resolution:
Because the printer installation process is happening so late after desktop logon (sometimes after 1 min) the default printer restore will have to be set to run AFTER Printer Logic done configuring the printers.
Prerequisites:
a) Printer Drivers must be installed on the gold image
b) PofileDisk must be part of the ProfileUnity setup.
c) Printers and Printer Default (2) portability rules must be part of your Default ProfileUnity configuration.
Step 1) Create new "Triggers.ini" configuration. This configuration will have ONLY these settings:
a) Create two Portability Settings rules, Use (UID) corresponding file names to your default ProfileUnity configuration.
Portability Settings Rule1:
-
- Filter: No Filter
- Action: Restore
- Process Action Post Logon: True
- Ruleset: User Printers & Printer Settings
- Apply Registry Rules: True
- Save Path: \\Server\Share\%username%\Portability
- UID: "Use same UID as rule in your main ProfileUnity Configuration"
Portability Settings Rule2:
-
- Filter: No Filter
- Action: Restore
- Process Action Post Logon: True
- Ruleset: User Default Printer
- Apply Registry Rules: True
- Save Path: \\Server\Share\%username%\Portability
- UID: "Use same UID as rule in your main ProfileUnity Configuration"
b) Create One Application Launcher rule
(This is needed to delay the restore of default printer, the 120 is how long to wait in seconds)
-
- Filter: No Filter
- Filespec: powershell.exe
- Arguments: -executionpolicy bypass -windowstyle hidden -noninteractive -nologo Start-Sleep -Seconds 120
- Timing: During Configuration Execution
- Hide Progress: True
- Run Async: False
Note: If you can't run powershell.exe in your environment you can use substitute:
- Filespec: cmd.exe
- Arguments: /k timeout.exe /t 120
c) In "Main" section of "Triggers" configuration modify "Deployment Path Override" and place the configuration is separate folder in netlogon share. Save the Triggers.ini in that path
-
- Deployment Path Override: \\Domain\Netlogon\ProfileUnity\Triggers
Step 2) Modify ProfileUnity default configuration with following settings:
a) Create 2 User Defined Script Rules to delete manifest files of the two printer portability rules to force a restore when used in conjunction with ProfileDisk. (The 2 "delete" user defined script rules are only needed when ProfileDisk is in use or machine is persistent) Use (UID) corresponding file names to your default ProfileUnity configuration.
Create User Defined Script Rule 1:
-
- Description: Delete Manifest of User Default Printer Setting Portability Archive to force restore
- Execute: After ProfileUnity at Logoff
- Type: Executable
- File: %systemroot%\system32\cmd.exe /c del
\\Server\Share\%username%\Portability\%username%\portability\user_default_printer.lbr.7z.manifest - Run In-Process: False
Create User Defined Script Rule 2:
-
- Description: Delete Manifest of User Printers & Printer Settings Portability Archive to force restore
- Execute: After ProfileUnity at Logoff
- Type: Executable
- File: %systemroot%\system32\cmd.exe /c del
\\Server\Share\%username%\Portability\%username%\portability\user_printer_settings.lbr.7z.manifest - Run In-Process: False
b) Create Two Trigger Rules to execute the trigger configuration post logon:
Create Trigger Point Rule 1:
-
- Filter: No Filter - Apply this to all
- Description: This trigger will run Application Launcher first and force a delay
- Type: Post Login
- Module: Application Launcher
- INI Path: \\Domain\Netlogon\ProfileUnity\Triggers\Triggers.ini
Create Trigger Point Rule 2:
-
- Filter: No Filter - Apply this to all
- Description: This Trigger will run after Rule 1 completes and do a Restore two Portability rules
- Type: Post Login
- Module: Portability Restore
- INI Path: \\Domain\Netlogon\ProfileUnity\Triggers\Triggers.ini
Save and Update ProfileUnity configuration.
Product: ProfileUnity
Product Version: 6.8.4