none
UVHD-template.vhdx is gone! Recreate the template Windows 2016 RRS feed

  • Question

  • Hi All,

    I have following problem.

    Somehow and I don't now why, the UVHD-template.vhdx is gone.

    Is there a way to recreate this template disk?

    Thanks in advance

    Jean

    Monday, February 25, 2019 11:21 AM

Answers

  • Hi,

    On one of the RDSH servers that are part of the session collection you may open an admin powershell prompt and enter commands similar to below:

     
    $tssd = Get-WmiObject -NameSpace root\CIMV2\TerminalServices -Class Win32_TSSessionDirectory
    $tssd.CreateUserDiskTemplate("\\fileserver\updshare",20)
     

    In the above you will need to change the file server and share name as well as set the maximum size in Gigabytes if you need something different than 20.

    -TP

    Monday, February 25, 2019 12:29 PM
    Moderator
  • Hi,

    No impact on existing UPDs.  If you have concerns about them you may log on to the file server, right-click on the drive where the UPDs are stored, and create snapshot before you run the command.

    Yes, run on RDSH server in admin powershell prompt.

    -TP

    Monday, February 25, 2019 1:56 PM
    Moderator
  • hi,
    "ie does the new template.vhdx file only affect new users?
    Yes, the changing the template does not affect existing .upd files created prior to your change."
    User Profile Disks - template.vhdx
    https://social.technet.microsoft.com/Forums/windows/en-US/558daab7-f7bf-472c-956e-dfa19b44b8d3/user-profile-disks-templatevhdx?forum=winserverTS

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by JEKOB Friday, March 1, 2019 8:07 AM
    Tuesday, February 26, 2019 1:53 PM
    Moderator

All replies

  • Hi,

    On one of the RDSH servers that are part of the session collection you may open an admin powershell prompt and enter commands similar to below:

     
    $tssd = Get-WmiObject -NameSpace root\CIMV2\TerminalServices -Class Win32_TSSessionDirectory
    $tssd.CreateUserDiskTemplate("\\fileserver\updshare",20)
     

    In the above you will need to change the file server and share name as well as set the maximum size in Gigabytes if you need something different than 20.

    -TP

    Monday, February 25, 2019 12:29 PM
    Moderator
  • Hi TP,

    thanks for the quick response.

    Just for clarification: The commands have to be run on the Remote Desktop Session Host and not on the Connection Broker?

    Does it have an impact on the existing Update Profile Disks?

    Thanks

    Jean

    Monday, February 25, 2019 1:08 PM
  • Hi,

    No impact on existing UPDs.  If you have concerns about them you may log on to the file server, right-click on the drive where the UPDs are stored, and create snapshot before you run the command.

    Yes, run on RDSH server in admin powershell prompt.

    -TP

    Monday, February 25, 2019 1:56 PM
    Moderator
  • hi,
    "ie does the new template.vhdx file only affect new users?
    Yes, the changing the template does not affect existing .upd files created prior to your change."
    User Profile Disks - template.vhdx
    https://social.technet.microsoft.com/Forums/windows/en-US/558daab7-f7bf-472c-956e-dfa19b44b8d3/user-profile-disks-templatevhdx?forum=winserverTS

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by JEKOB Friday, March 1, 2019 8:07 AM
    Tuesday, February 26, 2019 1:53 PM
    Moderator
  • Thanks,

    everything is fine now.

    The disk is recreated

    Regards

    Jean

    Friday, March 1, 2019 8:07 AM