none
Azure Server 2016 RDSH & UPD & Windows Services RRS feed

  • Question

  • Hello colleagues,

    I'm facing a weird scenario in which I'd like to set up a new Windows service that must use a specific domain account. This server is a Azure Server 2016 that acts as RD Session Host configured for User Profile Disks (UPD).

    In other words, I have one RD Session Host and every time a user logs out, Windows unmounts the VHD and its profile disappears.

    Then, I've configured a service with a specific domain account. However, its profile does not exist on C:\Users, due to the UPD feature. Consequently, when the service starts, it fires the eventid 1511 "Windows cannot find the local profile and is logging you on with a temporary profile".

    Could you help me to find a workaround?
    For me, the service can even use a temporary profile, but Windows never deletes them and flooding C:\Users with folders like "temp.001.002.003.nnn..."

    Best
    pf

    Tuesday, August 20, 2019 2:15 PM

Answers

All replies

  • Hi,

    Based on your description, my understanding is that user logs on with temp profile on RDS(RD SH) environment with UPD enabled.

    I want to confirm with you if the UPD is stored on a network location? Or, local server disk?

    Please make sure that server has network connectivity to the UPD location. Besides, please check Event Viewer, and based on the problem happens time to find relate event about the failure UPD mounting. 

    Best Regards,
    Eve Wang

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

    Wednesday, August 21, 2019 7:13 AM
    Moderator
  • Ciao Eve, thanks for your prompt reply and sorry my inadequate explanation. However, I'm disoriented when using my native language too ;-)

    My understanding of UPDs is:
    1) When setup for UPDs, RD SH servers use this option ONLY (no way at all for local users).
    2) Windows Services aren't UPD-aware and never mount UPDs.
    3) Consequently, any Service running under a Specific Account USES a Temporary profile.

    I'd need to run a custom service, AND under a domain user, AND with a local profile.
    But I can see no workaround.

    Note: my UPD virtual disk are on a local drive and always available.

    Ciao e grazie




    • Edited by pgfiore Wednesday, August 21, 2019 8:36 AM
    Wednesday, August 21, 2019 7:44 AM
  • Hi,

    In general, the user profile disks works as below:
    1. 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.

    2. 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.

    >I'd need to run a custom service, AND under a domain user, AND with a local profile.
    Once domain account log on session host, with UPD enabled, specific .vhdx should be created for the account. I am afraid that it is unable to create a local profile for specific service account as UPD is enabled for your RDS deployment while you log on session host using domain account. 

    Best Regards,
    Eve Wang

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

    Thursday, August 22, 2019 7:56 AM
    Moderator
  • Ciao Eve,

    Thank you, it works as you wrote, at large. But in my scenario (specific account+win service), I'm stuck.

    Certainly, online, I can login with my specific account, and yes, the vhdx is created. I can even mount it later just to give it a look...

    However, all the above is good for nothing when it comes to "background" programs (i.e. Windows services)!
    In fact, when Windows starts my custom service, it simply ignores all the RDSH/UPD enviroment, evaluates my account as brand new, and goes for a temporary profile. :-(

    Could you all think of any workaround? Best.
    pf

    Thursday, August 22, 2019 12:23 PM
  • Hi,

    >In fact, when Windows starts my custom service, it simply ignores all the RDSH/UPD enviroment, evaluates my account as brand new, and goes for a temporary profile. 
    If problem only happens on specific service/product, and this specific service/product is not Microsoft product, I am afraid that we are unable to provide you the exact suggestion as we are not familiar with its working principle. 

    Monitoring tool, such as Process Monitor, can be considered. It capture real-time processes of your system, compare the processes details and it may provide you useful information for further identification.

    Process Monitor v3.52:
    https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

    Best Regards,
    Eve Wang

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

    Monday, August 26, 2019 7:41 AM
    Moderator
  • Hi,

    How things are going there on this issue?

    Please let me know if you would like further assistance.

    Best Regards,
    Eve Wang  

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

    Tuesday, August 27, 2019 9:20 AM
    Moderator
  • Dear Eve,

    I cannot see anything more Microsoft than the Microsoft logon scenario! ;-)
    I see just two alternatives: 
    either Microsoft Services are "UPD-aware" (but we'd need a proof)
    or Microsoft Services cannot mount UPDs, and there is no solution at all.

    To settle this situation, we need a solid opinion of a specialist.

    Thank you for the interest shown.
    Ciao
    pf

    Wednesday, August 28, 2019 7:19 AM
  • Hi,

    You can consider of contacting Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue. In addition, if the issue has been proved as system flaw, the consulting fee would be refund. 

    Global Customer Service phone numbers:
    https://support.microsoft.com/en-us/help/13948/global-customer-service-phone-numbers

    Best Regards,
    Eve Wang


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

    Thursday, August 29, 2019 7:51 AM
    Moderator