Citrix – Change DPI Scale, Font Size and Font Smoothing in a Citrix published desktop or Microsoft Remote Desktop with PowerShell

Summary

You publish Desktops and Applications with a Citrix XenApp/XenDesktop/Workspace or Microsoft Remote Desktop Services (RDS) environment on Microsoft Windows Server 2012 R2 or 2016 and restrict your users with GPO to change any display settings. But your users want to change the DPI Scale, Font Size or Font Smoothing? Here is a method with PowerShell, that gives your users the flexibility back to change the desired settings.

Description

The PowerShell script can be started from any desired location on your RDS server and produce a user friendly GUI, that allows the users to change three advanced display settings.

The Features of the PowerShell script

  • Three advanced display settings can changed
  • DPI Scaling (100, 125 and 150%)
  • Font Size (100, 125 and 150%)
  • Turn Font Smoothing On or Off
  • Display the actual Citrix session resolution
  • Display the actual configured advanced display settings
  • Graphical user interface (GUI)

The GUI

The GUI are simple and easy to use.

Start the PowerShell script over an desktop, start menu shortcut or published application.
Change the desired advanced display settings and press apply. Cancel close the PowerShell GUI dialog.
The session must be sign out, to successfully submit the settings. Clicking on OK will sing out the active user session.

The PowerShell script

Citrix – Change wallpaper with powershell on a Citrix published desktop or Microsoft remote desktop

Summary

You publish Desktops with a Citrix XenApp/XenDesktop/Workspace or Microsoft Remote Desktop Services (RDS) environment and restrict your users with GPO to change any display settings, but your users want to change the background image/wallpaper?

Here is a method with PowerShell, that gives your users the flexibility back to upload an own  background image/wallpapers or choose from three default background wallpapers.

Description

The PowerShell script and the required images are saved in a subfolder in the program files path and can be started through a start menu or desktop shortcut. The PowerShell script generate a user friendly GUI that allows the users to upload an own image/wallpaper or choose from three different and pre- defined wallpapers.

You can find the complete Script and image structure here => SetWallpaper_20171004.

OK, let’s start…

First you must declare some variables and values to understand and use the following PowerShell script.

  • Location of the PowerShell script (script line 32) $ProgramPath (In my scenario, the powershell script and the images are saved in the program files path.)
  • Upload location for the own wallpaper (script line 33) $ProfilePath (Path to save the uploaded wallpaper image and the generated base64 thumbnail.)
  • Max file length for upload (script line 34) $MaxFileLength (restrict file size for upload.)
  • Wallpaper icon (script line 37) $WallpaperIcon (Filename of the icon, that show in the upper left corner of the PowerShell GUI.)
  • Wallpaper style (script line 38) $WallpaperStyle (Stretch or center the wallpaper)
  • Name of wallpaper file (script line 39-41) $WallpaperPict1, $WallpaperPict2, $WallpaperPict3 (The names of the wallpaper image files)

    The Features of the PowerShell script

  • Three different pre-defined background wallpapers to choose
  • Upload and set own background image/wallpaper
  • Automatically generate a thumbnail from own uploaded image/wallpaper as base64 file in the roaming user profile (Why a base64 file; The thumbnail must be changed while the PowerShell form are active and loaded. A picture are locked by the loaded PowerShell form and cannot be deleted or changed, but a base64 file can be deleted and changed when the PowerShell form are loaded.)
  • File size limitation for own uploaded image/wallpaper
  • Graphical user interface (GUI)
  • The PowerShell script read the actual session resolution and set the most fitting image/wallpaper from the source files

The GUI

The GUI are simple and easy to use.

Start PowerShell GUI over an desktop or start menu shortcut.
PowerShell GUI overview.

 Assistant to upload own background image/wallpaper.
 
Automatically generate a thumbnail from own uploaded image/wallpaper as base64 file in the roaming user profile.
 
 Thumbnail preview and set own background image/wallpaper.
 File size limitation for own uploaded image/wallpaper (the default file size upload limitation are 1MB and can be changed in the PowerShell script variables).
 Three different pre-defined background wallpapers to choose.

The PowerShell script

The script set your own uploaded or one of the three pre-defined background images/wallpaper on a Citrix published Desktop or Microsoft remote desktop.

Shadow Light 3D print for Mercedes Benz W/S211 (E-class)

Mercedes Benz W/S211 (E-class) 3D printed Shadow Light 

You cannot find a suitable Shadow Light for Mercedes Benz W/S211 (E-class) on the hole internet or on in any online store?

No idea, why that is so, but it possible to plan, construct and print an own Shadow Light bracket, that fits Plug and Play in the existing Soffit bulb socket.

Following things are needed for the Shadow Light
– A Shadow Light that fits an Mercedes W/S2015 (C-class) or X156 (GLA-class) to transplant the Canbus electronic and the LED projector to your own printed Shadow Light bracket.
– Tamiya (or from some similar provider) ball screw connectors with 5mm diameter.
– Some electric cable (different color) with 1.5qmm cross section
– Some micro screws (stainless steel)
– Soldering iron and some “skilled craftsmanship”

The STL file will be soon available to download at Thingiverse.

Initial situation

Following Soffit Bulb and cover are factory default installed, in the doors from an Mercedes Benz W/S211 (E-class).

The 3D plan

The 3D print and assembly with Canbus electronic and LED projector 

The result

Ressources

3D plan and construction:  AutoDesk 123D
3D print: M3D Micro 3D printer

Apple MacBook Air 2018 30W USB-C Power Adapter Cable Holder

Apple MacBook Air 2018 30W USB-C Power Adapter 3D printed cable holder

When Apple saves the cable holder away on the 30W USB-C power adapter. Then you must plan, construct und print a own cable holder.

The STL file will be soon available to download at Thingiverse.

The 3D plan

The 3D print

The result

Holds the cable where it should be. 🙂

Ressources

3D plan and construction:  AutoDesk 123D
3D print: M3D Micro 3D printer