Event banner

Windows Office Hours: November 16, 2023

Event Ended
Thursday, Nov 16, 2023, 08:00 AM PST
In-Person

Event details

Get answers to your questions about adopting Windows 11 and managing the Windows devices used by remote, onsite, and hybrid workers across your organization. Get tips on keeping devices up to date effectively! Learn how to cloud attach your on-premises workloads!

Windows Office Hours is our continuing series of live Q&A for IT professionals here on Tech Community.

How does it work?
We will have a broad group of product experts, servicing experts, and engineers representing Windows, Microsoft Intune, Configuration Manager, Windows 365, Windows Autopilot, security, public sector, FastTrack, and more. They will be standing by here -- in chat -- to provide guidance, discuss strategies and tactics, and, of course, answer any specific questions you may have.

Post your questions in the Comments early and throughout the one-hour event.

Note: This is a chat-based event. There is no video or live meeting component. Questions and answers will appear in the Comments section below.

 

Heather_Poulsen
Published Jul 11, 2023

65 Comments

  • poregan-mla's avatar
    poregan-mla
    Copper Contributor

    We’ve found an edge case with how Azure AD (Entra) sets up user profiles on Windows machines. We think there's a fix, but it may need coordination from teams on both the Windows and Azure/Entra sides. Agents on our Microsoft Support tickets have acknowledged the issue but don't have a permanent solution. Hopefully you can channel this bug to the right folks or point us to a different approach?

     

    It appears that Windows uses the Entra-supplied “DisplayName” to build the user profile folder, %USERPROFILE%, and username, %USERNAME%. For users that have apostrophes, e.g. John O’Smith, this creates a user profile folder with the name of C:\Users\JohnO’Smith, a username of JohnO'Smith, and the down-level login of azuread\johno'smith.

     

    The apostrophe (single quote) in the folder and username cause a lot of programs to break. It’s the same underlying issue that SQL injection hacks exploit: apostrophes/single quotes wreak havoc with string construction and in sending arguments to commands. Somewhere a program is piping something that uses %USERPROFILE% in a path construction, and the string doesn’t get sanitized/escaped correctly so the command fails. The program fails silently, gracefully, or crashes. Unlike folders in My Documents, it’s impossible to fix or work around from the user end. Anything building a path from %APPDATA% also gets snared.

     

    Alongside a long list of commercial engineering software packages, this bug also affects Powershell's right-click shell command "Open Powershell Terminal here."

     

    Is there a way to request a fix for a future Windows build and/or Entra update? A very flexible fix would be if Azure could get a new database field called “WindowsProfileName” to build user names and profile folder names, falling back to DisplayName if it’s not set. That way it could also work for other cases where local profile folders need tighter control. For instance, TI's Code Composer Studio (and maybe other versions of Eclipse) complains about functionality when the user folder has extended ASCII characters like é, ö, etc. And sometimes Linux/Windows usernames need to be shared.

     

    If there are technical reasons that can't work, could you at least please tweak the way Windows builds the user profile folder to remove the apostrophe from the username and user profile? Since it strips out the space when it gets DisplayName, there’s probably a string parsing section already there. We've tried renaming/remapping the user folder after deployment as a local admin, but it seems to mess up OneDrive sync. It's also a highly manual operation that requires a local admin and restricts the conditions where users with names having apostrophes can log onto domain-joined machines and expect 100% application support. I'm not sure where the line between Azure and Windows is and where the apostrophe needs special treatment.

     

    Would using a Hybrid Entra/On-Prem system help here or suffer from the same issue? From prior experience, the on-prem Active Directory did not exhibit this problem since the administrator usually sets up a very limited character username [0-9A-Za-z] for the domain. Can that work/deploy correctly with Entra, or does Entra take over? What happens if the users already exist in Entra?

     

    Thanks

     

    (edited to fix line breaks)

    • Jason_Sandys's avatar
      Jason_Sandys
      Icon for Microsoft rankMicrosoft
      Hi. This is certainly an interesting and deep issue. Unfortunately, there's nothing we can truly offer to help this. This is ultimately a Windows specific issue that the Windows product group needs to review and prioritize to address. Continuing with your support case and escalating if possible is the best path to follow here. I will bring this to the attention of a colleague that tracks Windows commercial issues but that's not necessarily a path to resolution here. I understand that's frustrating, but the Windows code base is deep and wide and this will require a thorough investigation that is best handled through your support case as noted.
      • poregan-mla's avatar
        poregan-mla
        Copper Contributor
        Hi Jason, thanks for the candor. We've tried escalating a few times but it seems like we're hitting a wall, and we keep getting new tickets when it transfers between support teams because it isn't falling neatly into Windows or Entra. So far, we haven't received acknowledgment of it getting into Azure or Windows' bug tracker or a response with the permanent workaround. We can forward you a few of the tickets if that would help your colleague become more familiar with the problem.
  • reastman1966's avatar
    reastman1966
    Brass Contributor
    I am have some devices that are not registering in Intune like the other 250+ devices. Is there something that says if this happens with some kind of walkthrough? I have been working a ticket with support but nothing has solved the issue. I have been following these steps dsregcmd /status verify the device is AD and AAD joined, value in MDMurl, and AzureADPRT is yes gpresult /r check that GPO is applied for auto enrollment etc rsop.msc to verify the GPO for MDM for Intune is applied Delete registy.pol file / reboot check task scheduler EnterpriseMgmt Anything else?
  • Gopi_M's avatar
    Gopi_M
    Copper Contributor
    Bing chat enterprise is available and free for windows 11 PRO users?
    • Jason_Leznek's avatar
      Jason_Leznek
      Icon for Microsoft rankMicrosoft
      Bing Chat Enterprise today is available as part of M365 licenses, but we announced we will be making it available to all Entra ID customers soon.
  • JoeWhite's avatar
    JoeWhite
    Copper Contributor
    According to the documentation for Autopilot resets: "When Autopilot reset is used on a device, the device's primary user is removed. The next user who signs in after the reset will be set as the primary user." But this is not the case, primary users are not removed and new primary users are not set. This was confirmed and replicated by Microsoft support. Is it the documentation or the process that is at fault? For context we ordinarily do local autopilot resets on device with an ethernet connection, however we experience the same behaviour for autopilot resets triggered through Intune. I would appreciate any feedback available on this.
    • Jason_Sandys's avatar
      Jason_Sandys
      Icon for Microsoft rankMicrosoft
      Hi Joe. Can you please post a link to the documentation you've cited above for reference?
      • JoeWhite's avatar
        JoeWhite
        Copper Contributor
        Hi Jason, It's in the main documentation on Microsoft Learn for autopilot deployments: https://learn.microsoft.com/en-us/autopilot/windows-autopilot-reset
Date and Time
Nov 16, 20238:00 AM - 9:00 AM PST