Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Confirming that the userinit string is configured properly (1028975)

Last Updated: 1/6/2023Categories: InformationalTotal Views: 70029Language:
Chinese (Simplified)JapaneseEnglish

5 like this article

Subscribe to get an email
newsletter with new updates

5 people found this helpful Please provide article feedback:

Symptoms

The desktop appears as available in the View Administrator console even though the user has a disconnected session to this desktop.

Single Sign-On (SSO) is not operating properly.

You have just installed a new piece of software.

You have implemented a new Group Policy Object (GPO).

You have manually edited the userinit string in the registry in one of your virtual desktops.

You see error in Event Viewer of the virtual desktop similar to:

AGENT_PENDING_EXPIRED
The pending session on machine for user has expired

Purpose

This article provides a reference to the normal behavior of a userinit string in the Windows registry of a virtual desktop, and steps to fix a corrupted userinit string.

Cause

3rd party Software can hijack or replace the entries in the userinit string.

Resolution

The userinit string is responsible for listing applications that are launched upon successful authentication to a Windows guest operating system. Sometimes the installation of new applications, application of new GPOs, and manual user edits leave the userinit string in a mode, which can adversely affect the successful operation of logins, Single Sign-On, and other parts of the environment.

In a VMware Horizon View virtual desktop,  the userinit string will be similar to:

C:\Windows\System32\userinit.exe,"C:\Program Files\VMware\VMware View\Agent\bin\wssm.exe",

For a Virtual Machine deployed in Horizon Cloud on Azure platform, the path to the wssm executable differs in the userinit string.

C:\Windows\System32\userinit.exe,"C:\Program Files\VMware\Horizon Agents\Horizon Agent\bin\wssm.exe",

Note: The trailing comma is necessary. It ensures that any settings added by another piece of software or GPO are delimited as necessary. Most errors related to this occur because the installation routines are not configured to place the comma at the end of the string; the key is corrupted because it is not read properly unless it is delimited correctly.

To check the current userinit string:

Log in to your virtual desktop, the template your virtual desktop pool is based on, or the virtual machine base image that you are using for your virtual desktops.

Click Start > Run, type regedit and press Enter. The Registry Editor window opens.

Note: Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft article 136393.

Navigate to:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon  The userinit entry is located here.

Edit the userinit string if necessary. Ensure there is a comma between each program executable path. If there is not, edit the string so that there is a comma between each entry, remembering to add the trailing comma at the end of the string.

Restart the virtual desktop to commit the changes.

If you are editing a virtual machine base image, power down the base image, take a snapshot, and recompose using the new snapshot as your base image. For more information, see Understanding virtual machine snapshots in VMware ESXi and ESX (1015180).

Related Information

Understanding VM snapshots in ESXi / ESX
userinit 文字列が適切に構成されていることを確認する
确认已正确配置 userinit 字符串

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware View Manager

VMware View

VMware Horizon View

VMware Horizon Cloud on Microsoft Azure

VMware Horizon

Related Versions:

VMware View Manager 4.6.x

VMware View Manager 4.5.x

VMware View Manager 4.0.x

VMware View Manager 3.x

VMware View 6.0.x

VMware Horizon View 5.3.x

VMware Horizon View 5.2.x

VMware Horizon View 5.1.x

VMware Horizon View 5.0.x

VMware Horizon 8

VMware Horizon 7 version 7.4.x

VMware Horizon 7 version 7.3.x

VMware Horizon 7 version 7.2.x

VMware Horizon 7 version 7.0.x

VMware Horizon 7

view all

Take Our Survey

Support Assistant