User Profile Disk Template Cannot Be Created When Setting Up Session Collection

I'm having an odd issue when setting up my Session Collection. Everything is functioning properly during the config, but when it gets to setting up the User Profile Disks, I am getting the following error: "Could not create the template VHD.  Error
Message: -800389783".
Everything is configured properly - the share and the NTFS permissions are set so that all of the RDSH servers have full control. 
Thanks for the help!

OK, so I opened a support incident with Microsoft. The issue was a User Rights Assignment setting in the Default Domain Policy.  It was the “Access this computer from the network” setting, and it had been set to define DOMAIN ADMINS and DOMAIN USERS,
as well as two other defunct accounts (showing the SID only).  The issue is that DOMAIN ADMINS and DOMAIN USERS are already added to local Admins and Users groups respectively, so by making this setting we had caused a security issue that would not allow
the VHDX files to be created automatically.  This took a lot of digging with ProcessMon and other utilities on their part before they were able to track it down.  I have disabled this setting and now things are working just fine. 

Similar Messages

  • User Profile Disks - template.vhdx

    In Server 2012 standard ( not R2)
    using RD
    in Session Collection
    and in the "User Profile Disks" tab
    I have “Enable user profile disks”
    then selected various options and apply
    this then creates a template.vhdx file in the UPD folder
    then when new users ( let's say 5 x users) start to login
    then using the template.vhdx
    a .vhdx file (UPD) is created for each user containing their user SiD
    Questions -
    if i go back into Session Collection
    change the options in "User Profile Disks" and apply
    what happens to the template.vhdx file ?
    Is the original .vhdx file overwritten with the new one?
    or is a backup created ?
    Is there any name change ?
    Are the first 5 x users individual .vhdx files unchanged ?
    ie does the new template.vhdx file only affect new users?

    Hi,
    In regards to your questions;
    >>what happens to the template.vhdx file ?
    It will be updated with the changes you made
    >>Is the original .vhdx file overwritten with the new one?
    Yes
    >>or is a backup created ?
    No, If needed you can back-up the file prior to making changes
    >>Is there any name change ?
    No, the template file is not renamed
    >>Are the first 5 x users individual .vhdx files unchanged ?
    yes
    >>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.
    Hope this helps!
    Kind regards,
    Freek Berson
    The Microsoft Platform
    Twitter
    Linked-in
    Wortell company website

  • Unable to Enable User Profile Disks in RDP server 2012R2

    I am setting up a new Windows server that will act as an RDP server. The server has been built with Windows Server 2012R2. 
    I have the following roles and services working on the server: RD Web Access, RD Gateway, RD Licencing (with 30 user cal licences), the RD Connection broker, and the RD session host. 
    I have a SSL certificate configured and installed on the site, and both external and internal DNS are configured and working. 
    I have created and published an application collection and this is working. That is, when you go to https://remote.<servername>.org you are presented with a log in screen, users can log in with their domain accounts and then can connect to the published
    applications, this is working both on our internal network and from the general internet. 
    So all the roles on the server are working and the collection itself is also working. However, what I cannot do is set it up so that we can use user profile disks with that collection. When I go through the Session Collection Wizard and I get to "User
    Profile Disks" I can click on "Enable user profile disks" and then you can enter the options below. 
    I am entering the share location under location \\<servername>\<sharename> 
    I am using the default "store all user settings and data on the user profile disk" 
    Then I go to create the profile disks and I get the following error: 
    "Could not create the template VHD. Error Message: -2147024809
    This has happened multiple times, I have done the following: 
    - installed all windows updates and rebooted the server, same error 
    - checked the share permissions AND the folder permission for that share, for testing purposes I have set permissions on both the folder and the share to allow full control to "everyone" (I also tried it with only "domain users") but
    same error message. 
    - I have checked to see that no quotas are imposed on the disk where I am attempting to create the profile disks  - this was because this was the closest thing I could find on Technet was this post:
    https://social.technet.microsoft.com/Forums/windowsserver/ru-RU/aec30527-d742-42b9-950e-85c709c4cb45/vdi-problem-creating-user-profile-disks?forum=winserverhyperv
    And that was a quota issue that I am not having. 
    The UPD wizard says the following "the servers in the collection must have full control permission on the user profile disk share and the current user must be a member of the local Administrators group on that server" 
    Both of those things are true. 
    I have attempted to search for that specific error message (-2147024809) and have found nothing on Technet or any other site. 
    I am hoping someone here has some thoughts.  Thanks in advance. 

    I was looking at both the technet article for setting up UPD as well as this walk-through:
    http://thewolfblog.com/2014/02/24/user-profile-disks-for-rds-2012-2012-r2/
    The step after the creation of the disk in this walk-through is to look at who has permission on the .vhdx file, now obviously I am not at that step, but that is what led me down the trail of looking at user permissions, hence my attempts to set up shares
    where 'everyone' has full permissions on both the share and the folder.
    I have tried to set up multiple shares for the collection, I have tried on two different disks (volumes) on the RDP server itself, I also tried setting up a share on our fileserver (which has all kinds of shares working fine) and the same error occurred
    in all cases. 
    I also found this Technet article: 
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/d6469d31-6540-4075-a85f-a6e8f7c11e89/user-profile-disk-template-cannot-be-created-when-setting-up-session-collection?forum=winserverTS
    So that seems close to what I am looking for, but I have checked and the exact group policy that was causing the above linked issue is not defined in our group policies, but maybe there are other group policies that are causing the issue? 

  • User Profile Disk not being created

    Hi,
    I created a new 2012 VDI collection. Things seems to be working fine except for the User Profile Disks are not being created. From my understanding a .vhdx prefixed with the user's SID is supposed to be created when the user logs into one of the virtual
    machines from the collection. I can see that a UVHD-template.vhdx" was created correctly but when logging on to one of the deployed virtual machines from the pool there is no  other .vhdx files (except the template).
    From what I've read the virtualization hosts must have write access to the share (they do).  I can't seem to find any other requirements. I've searched through event viewer and found nothing. I'm not sure which logs to check on which server.
    Anyone have any ideas what I'm missing?

    Hi,
    Thanks for your post in Windows Server Forum.
    Kindly follow the below mention article and check the necessary steps for creating UPD, try to create new UPD.
    1.  Working with User Profile Disks on Session-Based Desktop Deployments
    2.  Easier User Data Management with User Profile Disks in Windows Server 2012
    Hope it helps!
    Thanks,
    Dharmesh

  • Server 2012 R2 RDS, User Profile Disks are created but local profiles are created as well. The UPDs aren't mounting correctly.

    2012 R2 RDS Deployment with RDCB HA and UPDs enabled. Everything was working fine with no issues until users started getting temporary profiles. Around the same time UPDs were being created but at the same time a user profile was created in C:\Users. 
    I actually rebuilt the entire RDS configuration except the SQL Server. It took about 5 hours and was not that big a deal but.... we still have the same issue! 
    Does anybody have the solution for this?

    Hi,
    In most cases, the issue is caused by locked UPD. And the workaround is to log off the user. Please check if it is the case.
    For example:
    RDS user profile disks - getting error temporary profile are being used as UPD are not accessible
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/0d4b66fc-b53f-435e-b036-142b6ed15d0b/rds-user-profile-disks-getting-error-temporary-profile-are-being-used-as-upd-are-not-accesible?forum=winserverTS
    Also, please check if you will get the temporary profile when logging on with a local account of the session host server.
    If issue persists, please check if there is any related error in Event Viewer and provide us for further research.
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • User Profile Disks - exclusions not working

    I'm utilizing User Profile Disks to handle profiles between my Session Host servers. I have some odd requirements on which folders need to be included in the UPD, so for this reason, I am using the option of "Store all user settings and data on the
    user profile disk" and then I am trying to exclude specific folders. However the exclusions are not working properly.
    For example, I am trying to exclude AppData\Roaming\Adobe. In Server Manager under the profile disk settings, I add an exclusion of \AppData\Roaming\Adobe.
    However after I connect to a RemoteApp and my profile disk is created, when I mount the UPD, I see that this folder is still created inside the VHDX. Am I entering the path incorrectly? How would I properly exclude a specific folder from being redirected
    to the user profile disk?

    Hi ,
    This issue may occur if the user profile was manually deleted by using the command prompt or by using Windows Explorer and if the “Do not logon users with temporary profiles” Group Policy setting is configured.
    A profile that is manually deleted does not remove the security identifier (SID) from the profile list in the registry.
    If the SID is present, Windows will try to load the profile by using the ProfileImagePath that points to a nonexistent path. Therefore, the profile cannot be loaded.
    To resolve this problem open yourself, follow these steps:
    Right click Computer > Properties > Advanced system settings > Advanced tab > Under User Profiles, click Settings > In the User Profiles dialog box, select the profile that you want to delete > click Delete > Apply/OK.
    Also check your Synchronization Connection Settings in User Profile Service application also make sure you are running this service application with Service Account i.e. Account with Farm Admin permission.
    Please mark the same as answer if it helps you.Thanks.

  • User Profile Disks - User registry data

    In Server 2012 standard (not R2)
     using RD
     in Session Collection
     and in the "User Profile Disks" tab
     I have ticked “Enable user profile disks”
    If I select the second radar-button
    "Store only the following folders on the user profile disk"
    What is the effect of ticking "User registry data" ?
    What is the result in the template.vhdx ?
    and when a new user logs in
    Is all the user registry "moved" to the UPD user .vhdx file where it is then maintained
    or
    Is a folder re-direction preserved in the UPD and the registry data still updated in its original location ?

    Hi,
    Thank you for your posting in Windows Server Forum.
    During first logon, a virtual disk (VHDX) is created from a template disk. This VHDX is attached to the virtual machine or RD Session Host server that the user is logging on to. The profile service is then notified to use this VHDX as the location for the user’s
    profile. When the user logs off, the VHDX is then detached from the virtual machine.
    By default, the entire user’s profile is stored on the user profile disk. This includes the Documents folder, the user’s registry hive (holds application and Windows settings), and much more.
    On subsequent logons to the collection, the VHDX is remounted to whatever virtual machine or RD Session Host server the user is logging on to. The user then has access to everything in his or her profile, even if this is a different virtual machine, or if the
    virtual machine has been rolled back to a clean state between logons.
    For more information, please check beneath article.
    Easier User Data Management with User Profile Disks in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/11/13/easier-user-data-management-with-user-profile-disks-in-windows-server-2012.aspx
    Working with User Profile Disks on Session-Based Desktop Deployments
    http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/general/working-with-user-profile-disks-on-session-based-desktop-deployments.html
    Hope it helps!
    Thanks,
    Dharmesh

  • User Profile Disks with Windows Server 2012 and Windows 8 VDI

    Hello experts!
    We are building a new server setup for the office and are unable to figure out why UPD will not work. We have VDI setup and a user for instance
    connecting through the RDWeb workplace will dynamically get one of the available Windows 8 Machines delivered through Hyper-V and can successfully login on this machine via Active Directory. So far so good...
    However, when we activate the User Profile Disks "UPD" feature the login takes forever and the VHDX will not mount on c:\users\...
    as expected within the virtual Windows 8 machine.
    The UPD config is quite simple, with just the path "\\vmhost\upd\" set. This share has (now during test) full access for everyone,
    both on share level and on security level, but still the VHDX will not mount.
    The UVHD-template.vhdx file gets created just fine when UPD is activated, and during login through RDWeb a TEMP-UVHD-S-1-5-21-1477358240-4159876597-995667825-500.vhdx
    gets created, but there it stops... The login process takes a couple of minutes by the "Windows förbereds" (roughly translated to English "Preparing Windows"), and then the user gets logged in with a temporary profile.
     - The event log says (translated using Google translate):
    Failed to obtain a user profile disk for the user account with SID S-1-5-21-1477358240-4159876597-995667825-500.
    Make sure the location of the user profile desk can be reached, the server's computer account has read and write permissions to the site and that there is a template file for user profile disks at the site.
    Name of the virtual desk"font-size:14px;font-family:'Droid Serif', Georgia, 'Times New Roman', serif;color:#222222;line-height:23px;"
    />HRESULT: 0x8007007B.0
    Please help, it should not be that hard to achieve this.

    Hi,
    As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as ‘Answered’ as the previous steps should be helpful for many
    similar scenarios.
    If the issue still persists and you want to return to this question, please reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer
    as you wish.
    In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Server 2012 R2 Corrupt User Profile Disks after RDSH reboot

    Hi,
    We have a serious problem when using User Profile Disks, we have a pretty simple setup with a single RDGW & RDCB and the 2x RDSH with a folder share for redirected folders and another for User Profile Disks. Now if any server suffers a re-boot when users
    are connected to it then their profiles gets corrupted and are issued with a temporary profile (we have a GPO to deny use of temp profiles) and so cannot log on.
    I have searched the forums and found the following hotfix
    http://support.microsoft.com/kb/2896328 but this ONLY applies to Windows Server 2012.
    Is there any published hotfix for Server 2012 R2, else we will need to look at another way of managing profiles ?
    Thanks,
    Donal

    Hi Donal,
    Sorry to say but there is no other Hotfix related to this issue for Server 2012 R2. But you can try the option of deleting the SID from registry. You can find the below path and then search for proper associated SID with user name and then delete it.
    HKLM\SOFTWARE\Microsoft\Windows NT\Current Version\ProfileList
    More information.
    RDS 2012: The User Profile Service Failed The Sign-In: User Profile Cannot Be Loaded
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Add a DFS file share path in User Profile disk in RDS 2012.

    I'm trying to add dfs file share path  in User profile disks .I get a error message "Access denied"
    Is it possible to add a dfs file share path ?

    Hi,
    It seems we cannot use a DFS file share path here.
    I found a similar thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/d8eafa8f-8999-443f-a2d7-8e6dfa3a2908/user-profile-disk-store-on-a-dfs-?forum=winserverTS
    In reply it mentioned "the share needs to be provided from a 2012 server directly as it needs to manage the permissions and share permissions directly".
    As you tested you get an access denied error when trying to use a DFS share. 
    If you have any feedback on our support, please send to [email protected]

  • Remote Desktop Services - User Profile Disks

    Hello
    I am testing a new RDS 2012 R2 setup using UPD's but have stubled into a problem.
    When I logon to RDS as a user and setup the profile so it uses the right Web Client and setup Outlook etc, then log out.
    I then log back in with the same user and his settings have not been saved.
    I have it set to replciate the usual documents etc so the UPD just handles Roaming Data and Registry. However I notice that the user I logged in is set to a local user in the profiles list and I cannot change him to roaming.
    Anyone ever come accross this and can help?
    Thanks
    This topic first appeared in the Spiceworks Community

    Hi,
    Thank you for posting in Windows Server Forum.
    From your description it seems there is single User profile Disk issue. There is one related Hotfix for this issue, please try to install and check whether your issue been resolved.
    FIX: You are logged on with a temporary profile to a remote desktop session after an unexpected restart of Windows Server 2012
    http://support.microsoft.com/kb/2896328
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Hi, that hotfix was already applied. Troubleshooting the issue further, it seemed that the user's UPD was locked or corrupted.  After I had all users logoff the Terminal Servers, I rebooted the Server that was hosting the UPDs. After the reboot, the user's
    profile loaded correctly on all Terminal Servers.

  • User Profile Disks with Windows Search

    We have 2 RDS Servers (2012R2) and work With User Profile Disks
    We use outlook cached mode (Outlook 2013 SP1) because the link to our head office is to slow
    The problem is that the outlook search isn't working properly.
    Every time the users logs on, search indexes are recreated
    This proces never finishes because the server is under a constant load, therefore search never works as it should.
    In eventvwr, we see this error alot:
    Crawl could not be completed on content source <winrt://{S-1-5-21-xxxxxxxxxxxx}/>.
    Context:  Application, SystemIndex Catalog
    Details:
    The parameter is incorrect.  (HRESULT : 0x80070057) (0x80070057)

    Hi,
    I have been searching for a solution for this issue in a client environment for a few months now.
    Our environment is similar, RDS on Server 2012 R2 with Outlook in cached mode and the search service enabled However we are using Outlook 2010.
    I disagree that the issue should be marked as resolved.
    I believe you are experiencing the same issue as I and these 2 other people:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/e6d4e3e6-37ef-488c-86ac-d135e3f2353f/windows-search-index-and-user-profile-disks?forum=winserverTS
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/dc6328e9-96dc-4377-a23f-0fb7020e5daa/indexing-user-profile-disk-on-a-file-server-or-on-the-rdsh-server?forum=winserverTS
    When users logon, the search service begins indexing and if the user is logged on long enough it completes user files, including the OST.
    However when the user logs off, Windows deletes the search data as it believes the profile has been deleted. The profile has not been deleted, the profile disk (UPD) has merely been dismounted.
    We really need a resolution for this, this shouldn't be happening. The profiles are not getting deleted and the index is getting deleted for the wrong reason.
    Furthermore if this issue is not fixable, then it will delay our push to move clients to Office 365. If we cannot index offline email on RDS, then we simply cannot move our Exchange servers offsite.
    Unfortunately no resolution has been provided from Microsoft as yet to any of these 3 people who requested support.
    Can anyone else shed any light on this?
    Thanks, Nigel

  • Log on as batch task with User Profile Disks

    We have a Windows Server 2012 R2 Remote Desktop deployment, where we use user profile disks stored on a central file server.
    We are trying to run a scheduled tasks as a user, while they are logged off.
    When the tasks runs, I can see an event in event viewer that says it was unable to load the user's profile, and as such, the Excel add in that is part of the tasks is not enabled, and as such the tasks fails to complete successfully.
    Is this a limitation of the user profile disks? Can the server load the user profile disk even without the user logging in interactively?
    Cheers, Eds

    Hi Amy,
    The task itself isn't failing, but the action the task executes fails, because it has logged in with a temporary profile.
    The last run time of the task was 14/04/2015 10:49:00, completing at 10:49:02. At this time, there is an event in the event viewer:
    As the tasks is logging in with a temporary profile, the Excel add-ins that user has are not loaded, and the action fails. This is the log from the application itself that is trying to run:
    The report 'PATH_TO_SPREADSHEET.xlsx' failed to run with the following error:  'Cannot run the macro 'JetMenu'. The macro may not be available in this workbook or all macros may be disabled.'.
    The macro it is referring to is an Excel reporting add-in.
    I think what I need to happen, is for the server to mount the users User Profile Disk, so that it does not load a temporary profile.
    Many thanks
    Eds

  • App-V 5.0 SP2 RDS Client with hotfix 2 breaks frequently on Windows 2012R2 with User Profile Disks enabled

    Hi All,
    I am at my wit's end trying to troubleshoot this, so any help would be greatly appreciated.
    We are having serious stability issues with App-V 5.0 SP2 RDS in our environment with User Profile Disks enabled.
    We have applied the latest hotfix but the issues persist.
    The main problems are:
    1. Periodically the client seems to become corrupted and all applications stop working for all users. All applications including the official Microsoft Office 2013 ones - not just our packages.
    The symptoms are the same as if I change the App-V Client Service account to run under a user account instead of SYSTEM, so it suggests a file access issue. The log files also hint at this, and one of there errors is similar to this:
    The virtual application 'C:\Users\rds.user9\AppData\Local\Microsoft\AppV\Client\Integration\A3EF9C01-C0E9-4AC5-B21F-DB9B1D2F700C\Root\Mindjet\MindManager 14\MindManager.exe' could not be started because the
    App-V Subsystem 'Virtual Filesystem' could not be initialized. {error: 0x6740090A-0x20003}
    Once this problem occurs the only way I have found to fix it is to either completely remove and reinstall the client, or (perhaps this is the big clue) rename the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\MAV\Configuration\Volumes , unpublish
    an application, then republish said application.
    I don't even think it matters which application gets published. The point seems to be that this 'Volumes' key gets rewritten.
    I am highly suspicious that our issues are caused by User Profile disks in our RDS environment, as when I disable them on our staging collection all of these issues seem to disappear.
    I have made sure all of the servers have permissions on the share (folder and share permissions). It doesn't seem to make a difference.
    2.  Some application fail completely with User Profile Disks enabled. If we switch the setting from "Store all settings and data on the user profile disk" to "Store Only the following folders" there seems to be some improvement,
    in that at least one application that fails on the other setting starts to work.
    3. We have already set that NTFS 8 dot 3 reg fix some time ago.
    SOS!
    We have gone live this week (not my call) and this is having disasterous consequences. :(
    Thanks in advance,
    John

    Hi,
    Thanks for your response.
    I did try this a while ago without success, although it may be worth revisiting with SP2 applied.
    I have left this client now.
    I left them a Powershell script that deletes HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\MAV\Configuration\Volumes
    and triggers an Unpublish/Publish of an application we have deployed to all of the servers.
    This seems to work, but a fix would be better than a workaround.
    Not really my problem now though - I did my best.
    Thanks,
    John

  • Server 2012 R2 user profile disks and outlook search not working

    Hi,
    I`m having a problem with my setup for quite some time now with Windows Search and indexing the outlook OST files.
    I`m using user profile disks in my setup but it seems that Windows Search can`t index the user profile disks, hence when i`m searching in outlook (the OST file is located in the user profile disk) with windows search enabled i`m not getting any results because
    it can`t index the OST file.
    If I don`t use the disks then windows search works fine but because i`m using clustered TS servers I need the profile disks and I don`t want to go back to redirects if possible..
    At the moment I`ve disabled Windows Search which forces outlook to search online, it works but is slow..

    Next issue that popped up, after the user logs off it will deleted the indexed data and start over the next time the user logs on..
    Any fix for that?
    There are three other Technet threads describing the same exact problem about indexing data being deleted when a user logs off from RDS. I'm experiencing this bug also and haven't found anything to fix it yet.
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/dffeb258-b985-452b-82f3-b66b950b98b6/user-profile-disks-with-windows-search?forum=winserverTS
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/e6d4e3e6-37ef-488c-86ac-d135e3f2353f/windows-search-index-and-user-profile-disks?forum=winserverTS
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/dc6328e9-96dc-4377-a23f-0fb7020e5daa/indexing-user-profile-disk-on-a-file-server-or-on-the-rdsh-server?forum=winserverTS
    my PC Techs http://www.mypctechs.com

Maybe you are looking for