By using AWS re:Post, you agree to the AWS re:Post Terms of Use

How can I set the default printer on Amazon Windows WorkSpaces and prevent the settings from reverting?

3 minute read
0

I use Amazon Windows WorkSpaces, and I want to set a default printer for a WorkSpace. Or, I set a default printer for my Windows WorkSpace, but the settings don't persist after I log off and log in to the WorkSpace again.

Resolution

Set a default printer

To set a default printer, complete the following steps:

  1. Download and install the driver for your local printer on the WorkSpace.
  2. From the WorkSpace, set a printer as the default printer, and then set the printer preferences.
  3. Install the Group Policy administrative template for PCoIP.
  4. Configure the local printer redirection.

Troubleshooting

If the default printer settings aren't preserved after you log off and log into the WorkSpace again, set the default printer on the WorkSpace. Then, complete the following steps:

Export a registry key that contains the default printer setting

  1. From the Windows Start menu, choose Run.
  2. Enter Regedit, and then choose Ok.
  3. From the left navigation pane, expand HKEY_Current_User, Software, Microsoft, Windows NT, and CurrentVersion.
  4. Under CurrentVersion, open the context (right-click) menu for Windows, and then choose Export.
  5. Save the file to your desktop and then name the file. Note the file name for a later step.

Create a scheduled task

To trigger a registry import when a user logs on, complete the following steps:

Note: The trigger might not work if users disconnect but don't log off. If trigger doesn't work, then the user must log off, and then log in again.

  1. Open a command prompt, and then run taskschd.msc to open Task Scheduler.

  2. From the Actions panel, choose Create Basic Task.

  3. For Name, enter a task name, and then choose Next.

  4. For Trigger, select When I log on, and then choose Next.

  5. For Action, select Start a program, and then choose Next.

  6. For Program/script, enter the following text. Replace username and filename.reg with your own values:

    regedit.exe /s D:\Users\username\Desktop\filename.reg

    Note: Use the file name that you created when you exported the registry key.

  7. Choose Next, and then choose Yes.

  8. Select Open the Properties dialog for this task when I click Finish, and then choose Finish.

  9. On the General tab, for Security options, select Run with highest privileges.

  10. On the Triggers tab, select the At log on trigger, and then choose Edit.

  11. For Advanced settings, select Delay task for, change the value to 1 minute, and then choose Ok.

  12. On the Actions tab, select the Start a program action, and then choose Edit.

  13. For Start in (optional), enter c:\windows, and then choose Ok.

  14. To close the properties window, choose Ok.

To confirm that the default printer settings persist, log off, and then log in again. It can take about a minute after you log in for the default printer to appear correctly.

Related information

Printing from a WorkSpace

AWS OFFICIAL
AWS OFFICIALUpdated 19 days ago