VMware Horizon Community
trb48
Contributor
Contributor

User cannot log in

When our virtual desktops are being created the user gets the following error when they log in:

"The security database on the server does not have a computer account for this workstation trust relationship."

or

We have received the same error but with a SAM database addition.

And if we look in the Domain Controller logs we see this:

"The session setup from the computer ComputerName failed to authenticate. The name(s) of the account(s) referenced in the security database is ComputerName.  The following error occurred:

Access is denied."

Our primary Domain Controller is a Windows 2008 R2 server and our other domain controller is Windows 2003. I can't figure out what is wrong and our users cannot login after the machine is created.

-trb48

0 Kudos
4 Replies
Linjo
Leadership
Leadership

How do you customize your machines?

Quickprep or sysprep?

// Linjo

Best regards, Linjo Please follow me on twitter: @viewgeek If you find this information useful, please award points for "correct" or "helpful".
0 Kudos
trb48
Contributor
Contributor

After I complete installing and setting up the virtual desktop I use sysprep to copy the user profile to the default profile. After that I let View do its thing. Here is the sysprep script I use to copy the profile:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ComputerName>*</ComputerName>
            <RegisteredOrganization>College</RegisteredOrganization>
            <RegisteredOwner>Business College</RegisteredOwner>
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
            <TimeZone>Mountain Standard Time</TimeZone>
            <CopyProfile>true</CopyProfile>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Identification>
                <Credentials>
                    <Domain>bc</Domain>
                    <Password>password</Password>
                    <Username>image</Username>
                </Credentials>
                <JoinDomain>bc.com</JoinDomain>
            </Identification>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <InputLocale>0409:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <RegisteredOrganization>Business College</RegisteredOrganization>
            <RegisteredOwner>BC</RegisteredOwner>
            <TimeZone>Mountain Standard Time</TimeZone>
            <UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>password</Value>
<PlainText>true</PlainText>
</Password>
<Description>Test account</Description>
<DisplayName>Test Account</DisplayName>
<Group>Administrators</Group>
<Name>ldsbc2</Name>
</LocalAccount>
</LocalAccounts>
                <DomainAccounts>
                    <DomainAccountList wcm:action="add">
                        <Domain>ldsbc</Domain>
                        <DomainAccount wcm:action="add">
                            <Group>Administrators</Group>
                            <Name>Domain Users</Name>
                        </DomainAccount>
                    </DomainAccountList>
                </DomainAccounts>
            </UserAccounts>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog://bc-abner/express/classroom-windows7/operating systems/windows 7 x86/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Could the way I am syspreping the virtual desktop be causing the problem?

0 Kudos
trb48
Contributor
Contributor

I cut out all of the extra stuff from my sysprep config file and we are still having the same problem. Here is the actual SAM error I mentioned above:

The SAM database on the Windows server does not have a computer account for this workstation trust relationship.

If you go into the domain controler and reset the computer and login the error changes:

The security database on the server does not have a computer account for this workstation trust relationship.

I found online that if you open ADSIEDIT.MSC on the domain controller and navigate to the computer you will see that an entry is missing. Once you find the computer right click and go to properties. After that look for the "servicePrincipalName" setting. In this case it is empty. On a good and working computer this is populated with several different settings.

I am not sure what is going on...Any help at all would be appreciated.

0 Kudos
trb48
Contributor
Contributor

I just checked my settings inside View and I realized something. Before I take a snapshot of the virtual desktop I run sysprep. After that I add it into my pool. Then quickprep runs. I wonder if the double sysprep is cauing the problems.

0 Kudos