%3CLINGO-SUB%20id%3D%22lingo-sub-1802619%22%20slang%3D%22en-US%22%3ERe%3A%20Troubleshooting%20auth%20issues%20in%20Outlook%20if%20you%20are%20Azure%20joining%20non-persistent%20Virtual%20Desktop%20I%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1802619%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ENice%20info.%3C%2FP%3E%3CP%3EWe%20are%20currently%20using%20FSlogix%20Profiles%20for%20roaming%20profiles.%3C%2FP%3E%3CP%3EHow%20can%20we%20achieve%20exlusion%20of%20hive%26nbsp%3B%3CEM%3EHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5COffice%5C16.0%5CCommon%5CIdentity%26nbsp%3B%3C%2FEM%3Ewith%20FSlogix%20Profiles%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1812744%22%20slang%3D%22en-US%22%3ERe%3A%20Troubleshooting%20auth%20issues%20in%20Outlook%20if%20you%20are%20Azure%20joining%20non-persistent%20Virtual%20Desktop%20I%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1812744%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20best%20method%20to%20control%20that%20registry%20key%20is%20to%20utilize%20GPO%20to%20exclude%20that%20registry%20path%20with%20a%20remove%20action.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1789359%22%20slang%3D%22en-US%22%3ETroubleshooting%20auth%20issues%20in%20Outlook%20if%20you%20are%20Azure%20joining%20non-persistent%20Virtual%20Desktop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1789359%22%20slang%3D%22en-US%22%3E%3CP%3EVirtual%20desktop%20infrastructure%20(VDI)%20is%20defined%20as%20the%20hosting%20of%20desktop%20environments%20on%20a%20central%20server.%20It%20is%20a%20form%20of%20desktop%20virtualization%2C%20as%20the%20specific%20desktop%20images%20run%20within%20virtual%20machines%20(VMs)%20and%20are%20delivered%20to%20end%20clients%20over%20a%20network.%20Those%20endpoints%20can%20be%20various%20devices%20including%20PC%20and%20tablets.%20There%20are%20many%20applications%20for%20this%20technology%20but%20today%20we%20will%20discuss%20some%20of%20the%20most%20common%20issues%20our%20customers%20face%20when%20using%20Microsoft%20Outlook%20(this%20extends%20to%20other%20Microsoft%20office%20apps)%20in%20a%20non-persistent%20Virtual%20Desktop%20Infrastructure%20(a.k.a.%20VDI)%20and%20are%20using%20Exchange%20Online.%20Some%20of%20the%20issues%20end%20users%20might%20see%20include%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOutlook%20prompting%20for%20password%20repeatedly%3C%2FLI%3E%0A%3CLI%3EOutlook%20displaying%20%E2%80%9CNeed%20Password%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EOutlook%2FOffice%20displaying%20a%20blank%20password%20screen%3C%2FLI%3E%0A%3CLI%3EOutlook%2FOffice%20activation%20issues%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ETo%20avoid%20these%20issues%20being%20caused%20by%20non-persistent%20VDI%2C%20we%20will%20discuss%20best%20practices.%20There%20are%20a%20lot%20of%20unsupported%20scenarios%20when%20it%20comes%20to%20using%20VDIs%20with%20Azure.%20To%20check%20supported%20scenarios%20please%20see%20the%20following%20link%20-%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fhowto-device-identity-virtual-desktop-infrastructure%23supported-scenarios%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVDI%20Supported%20Scenarios%3C%2FA%3E.%20There%20are%20some%20preparations%20that%20must%20be%20made%20for%20your%20users%20to%20have%20the%20best%20Microsoft%20365%20experience%20with%20Outlook.%20Currently%2C%20Microsoft%20only%20supports%20Hybrid%20Azure%20AD%20Join%20for%20VDIs.%20This%20means%20that%20you%20must%20follow%20the%20prerequisites%20and%20planning%20that%20is%20laid%20out%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevices%2Fhybrid-azuread-join-plan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3ENot%20planning%20on%20hybrid%20Azure%20AD%20joining%3F%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3ETo%20prevent%20machines%20from%20performing%20workplace%20and%20Azure%20AD%20Join%20use%20the%20following%20registry%20keys%3A%20(Note%3A%20You%20may%20also%20have%20to%20delete%20the%20computer%2Fdevice%20object%20from%20Azure%20AD%20devices%20if%20these%20computers%20have%20already%20been%20joined.)%3C%2FP%3E%0A%3CP%3ECreate%20a%20new%20DWORDs%20in%20this%20path%20HKEY_LOCAL_MACHINE%5CSoftware%5CPolicies%5CMicrosoft%5CWindows%5CWorkplaceJoin%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDWORD%3A%20%E2%80%9CBlockAADWorkplaceJoin%E2%80%9D%2C%20Value%3D1%3C%2FLI%3E%0A%3CLI%3EDWORD%3A%20%E2%80%9CautoWorkplaceJoin%E2%80%9D%2C%20Value%3D0%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22VDI01.jpg%22%20style%3D%22width%3A%20792px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227209i944CDC96166EE4FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22VDI01.jpg%22%20alt%3D%22VDI01.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CFONT%20size%3D%225%22%3ERequirements%20for%20all%20scenarios%20for%20non-persistent%20VDI%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EEnsure%20that%20you%20are%20NOT%20roaming%20your%20Identity%20hive%20located%20in%20Computer%5CHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5COffice%5C16.0%5CCommon%5CIdentity%3C%2FEM%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThis%20entire%20hive%20must%20be%20excluded%20from%20roaming%20profiles.%20There%20are%20several%20ways%20you%20can%20exclude%20this%20from%20roaming.%20Example%2C%20Citrix%20profile%20management%20or%20GPO%20and%20sometimes%20both%20need%20to%20be%20configured%20depending%20on%20your%20configuration.%20The%20reason%20for%20this%20is%20due%20to%20the%20ADAL%20process%20writes%20device%20information%20into%20this%20key%20and%20if%20you%20only%20have%20one%20host%20this%20is%20acceptable%20but%20most%20environments%20have%20multiple%20VDI%20hosts%20and%20the%20machine%20information%20will%20not%20match%20when%20that%20user%20logs%20into%20a%20different%20machine%20with%20another%20machines%20Identity%20hive%20information.%20This%20will%20cause%20a%20prompt%20for%20the%20user%20even%20on%20application%20hosts%20only.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CEM%3EEnsure%20that%20you%20have%20shared%20computer%20activation%20configured%20for%20your%20VD%20environment.%20(See%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployoffice%2Foverview-of-shared-computer-activation-for-office-365-proplus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20for%20more%20information%20on%20shared%20computer%20activation)%3C%2FEM%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIf%20shared%20computer%20activation%20is%20not%20configured%20for%20users%2C%20then%20users%20may%20be%20prompted%20to%20login%20to%20office%20to%20verify%20licensing.%3C%2FLI%3E%0A%3CLI%3EIf%20you%20don%E2%80%99t%20have%20Single%20Sign-on%20configured%2C%20you%20can%20now%20roam%20the%20license%20location%20for%20profiles%20or%20have%20them%20on%20a%20shared%20folder%20on%20your%20network%20as%20well.%20The%20location%20for%20licensing%20token%20is%20%25localappdata%25%5CMicrosoft%5COffice%5C16.0%5CLicensing.%20(Note%3A%20This%20does%20not%20guarantee%20that%20your%20user%20will%20not%20be%20prompted%20for%20credentials.)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CEM%3EEnsure%20that%20Office%20and%20Windows%20are%20to%20the%20most%20recent%20updates.%20Please%20see%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Ftroubleshoot%2Fauthentication%2Fconnection-issue-when-sign-in-office-2016%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20for%20necessary%20Windows%20and%20Office%20builds.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20using%20a%20non-persistent%20VDI%20and%20may%20already%20be%20Azure%20AD%20Domain%20joined%20the%20following%20steps%20should%20remove%20the%20device%20from%20being%20Azure%20AD%20joined%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVerify%20that%20machines%20are%20not%20Azure%20AD%20and%2For%20Workplace%20joined%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EVerify%20the%20following%20registry%20keys%20are%20present%20to%20prevent%20the%20machine%20from%20rejoining%20Azure%20AD%20or%20Workplace%20join%3A%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20new%20DWORDs%20in%20this%20path%20HKEY_LOCAL_MACHINE%5CSoftware%5CPolicies%5CMicrosoft%5CWindows%5CWorkplaceJoin%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDWORD%3A%20%E2%80%9CBlockAADWorkplaceJoin%E2%80%9D%2C%20Value%3D1%3C%2FLI%3E%0A%3CLI%3EDWORD%3A%20%E2%80%9CautoWorkplaceJoin%E2%80%9D%2C%20Value%3D0%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E2.%20If%20you%20are%20Azure%20AD%20joined%2C%20run%20the%20following%20command%20in%20an%20elevated%20command%20prompt%2C%20DSRegCMD%20%2FLeave%20and%20then%20reboot%20the%20host.%20You%20can%20check%20the%20status%20of%20AAD%20join%20by%20running%20DSRegCMD%20%2Fstatus%20in%20command%20prompt.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%26nbsp%3BAzure%20AD%20join%20status%20showing%20that%20the%20machine%20is%20Azure%20AD%20joined.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22VDI02.jpg%22%20style%3D%22width%3A%20975px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227210i1CB8A55ED0DFB189%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22VDI02.jpg%22%20alt%3D%22VDI02.jpg%22%20%2F%3E%3C%2FSPAN%3E3.%20If%20you%20are%20Workplace%20joined%20(this%20is%20harder%20to%20remove)%20you%20have%20to%20perform%20the%20below%20steps.%20Run%20DSRegCMD%20%2FStatus%20to%20check%20status%20of%20workplace%20join%20in%20command%20prompt.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22VDI03.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227211i8BEB890E67A7948D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22VDI03.jpg%22%20alt%3D%22VDI03.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E4.%20Navigate%20to%20Settings%20%26gt%3B%20Accounts%20%26gt%3B%20Access%20work%20or%20school%20%26gt%3B%20Disconnect%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22VDI04.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227212i6E6480761886050C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22VDI04.jpg%22%20alt%3D%22VDI04.jpg%22%20%2F%3E%3C%2FSPAN%3EHope%20this%20helps%20in%20your%20deployments!%20Let%20us%20know%20if%20you%20have%20any%20questions!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22author%22%3ETaylor%20Morrison%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1789359%22%20slang%3D%22en-US%22%3E%3CP%3EVirtual%20desktop%20infrastructure%20(VDI)%20is%20defined%20as%20the%20hosting%20of%20desktop%20environments%20on%20a%20central%20server.%20It%20is%20a%20form%20of%20desktop%20virtualization...%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1789359%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOutlook%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20'n%20Tricks%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etroubleshooting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

Virtual desktop infrastructure (VDI) is defined as the hosting of desktop environments on a central server. It is a form of desktop virtualization, as the specific desktop images run within virtual machines (VMs) and are delivered to end clients over a network. Those endpoints can be various devices including PC and tablets. There are many applications for this technology but today we will discuss some of the most common issues our customers face when using Microsoft Outlook (this extends to other Microsoft office apps) in a non-persistent Virtual Desktop Infrastructure (a.k.a. VDI) and are using Exchange Online. Some of the issues end users might see include:

  • Outlook prompting for password repeatedly
  • Outlook displaying “Need Password”
  • Outlook/Office displaying a blank password screen
  • Outlook/Office activation issues

To avoid these issues being caused by non-persistent VDI, we will discuss best practices. There are a lot of unsupported scenarios when it comes to using VDIs with Azure. To check supported scenarios please see the following link - VDI Supported Scenarios. There are some preparations that must be made for your users to have the best Microsoft 365 experience with Outlook. Currently, Microsoft only supports Hybrid Azure AD Join for VDIs. This means that you must follow the prerequisites and planning that is laid out here.

Not planning on hybrid Azure AD joining?

To prevent machines from performing workplace and Azure AD Join use the following registry keys: (Note: You may also have to delete the computer/device object from Azure AD devices if these computers have already been joined.)

Create a new DWORDs in this path HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WorkplaceJoin

  1. DWORD: “BlockAADWorkplaceJoin”, Value=1
  2. DWORD: “autoWorkplaceJoin”, Value=0

VDI01.jpgRequirements for all scenarios for non-persistent VDI

Ensure that you are NOT roaming your Identity hive located in Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity

  • This entire hive must be excluded from roaming profiles. There are several ways you can exclude this from roaming. Example, Citrix profile management or GPO and sometimes both need to be configured depending on your configuration. The reason for this is due to the ADAL process writes device information into this key and if you only have one host this is acceptable but most environments have multiple VDI hosts and the machine information will not match when that user logs into a different machine with another machines Identity hive information. This will cause a prompt for the user even on application hosts only.

Ensure that you have shared computer activation configured for your VD environment. (See here for more information on shared computer activation)

  • If shared computer activation is not configured for users, then users may be prompted to login to office to verify licensing.
  • If you don’t have Single Sign-on configured, you can now roam the license location for profiles or have them on a shared folder on your network as well. The location for licensing token is %localappdata%\Microsoft\Office\16.0\Licensing. (Note: This does not guarantee that your user will not be prompted for credentials.)

Ensure that Office and Windows are to the most recent updates. Please see here for necessary Windows and Office builds.

If you are using a non-persistent VDI and may already be Azure AD Domain joined the following steps should remove the device from being Azure AD joined:

Verify that machines are not Azure AD and/or Workplace joined

Verify the following registry keys are present to prevent the machine from rejoining Azure AD or Workplace join:

1. Create a new DWORDs in this path HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WorkplaceJoin

  • DWORD: “BlockAADWorkplaceJoin”, Value=1
  • DWORD: “autoWorkplaceJoin”, Value=0

2. If you are Azure AD joined, run the following command in an elevated command prompt, DSRegCMD /Leave and then reboot the host. You can check the status of AAD join by running DSRegCMD /status in command prompt.

  •  Azure AD join status showing that the machine is Azure AD joined.

VDI02.jpg3. If you are Workplace joined (this is harder to remove) you have to perform the below steps. Run DSRegCMD /Status to check status of workplace join in command prompt.

VDI03.jpg

4. Navigate to Settings > Accounts > Access work or school > Disconnect

VDI04.jpgHope this helps in your deployments! Let us know if you have any questions!

Taylor Morrison

2 Comments
Senior Member

Hi,

Nice info.

We are currently using FSlogix Profiles for roaming profiles.

How can we achieve exlusion of hive HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity with FSlogix Profiles?

Microsoft

The best method to control that registry key is to utilize GPO to exclude that registry path with a remove action.