Windows Server 2019 - Windows Installer - Temp path + session id

Did you see this support article: https://docs.winking.be/tn/article/207

Solutions: They suggest two "solutions":

  1. Manually creating the missing session ID folder
  2. Disable the creation of temporary Session ID folders via group policy

Group Policy: Run gpedit.msc to open the Local Group Policy Editor. Changing policies on a server might be a bit extreme in some environments... Depends how much autonomy you have. I would check with the lords.

  • Windows Server 2003+: Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Temporary folders

  • Windows Server 2019+: Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Temporary folders


Raymond Chen: Why does the name of my TEMP directory keep changing?


Links: Some further links that are "nice to have". Do visit the first one:

  • Why does %TEMP% resolve to a non-deterministic path of the form %TEMP<digit>?
  • %TEMP% folder that includes the logon session ID is deleted unexpectedly in Windows Server 2019
  • Do not use temporary folders per session